Add project structure: composer.json, System/ directories, bin/bicycle

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Egor Isaev 2026-04-27 15:47:52 +03:00
parent e672216b8a
commit e761ce9287
13 changed files with 38 additions and 0 deletions

0
System/Console/.gitkeep Normal file
View File

View File

0
System/Core/.gitkeep Normal file
View File

0
System/Database/.gitkeep Normal file
View File

View File

0
System/Http/.gitkeep Normal file
View File

View File

0
System/Router/.gitkeep Normal file
View File

0
System/View/.gitkeep Normal file
View File

11
bin/bicycle Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
define('BASE_PATH', dirname(__DIR__));
require_once BASE_PATH . '/vendor/autoload.php';
$app = new \Bicycle\Core\Application(BASE_PATH);
$app->runConsole($argv);

27
composer.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "bicycle/framework",
"description": "Самописный PHP-фреймворк",
"type": "project",
"require": {
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"squizlabs/php_codesniffer": "^3.0",
"phpstan/phpstan": "^1.0"
},
"autoload": {
"psr-4": {
"Bicycle\\": "System/"
}
},
"autoload-dev": {
"psr-4": {
"Bicycle\\Tests\\": "tests/"
}
},
"config": {
"optimize-autoloader": true
},
"minimum-stability": "stable"
}

0
config/.gitkeep Normal file
View File

0
tests/Unit/.gitkeep Normal file
View File