Add project structure: composer.json, System/ directories, bin/bicycle
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e672216b8a
commit
e761ce9287
0
System/Console/.gitkeep
Normal file
0
System/Console/.gitkeep
Normal file
0
System/Container/.gitkeep
Normal file
0
System/Container/.gitkeep
Normal file
0
System/Core/.gitkeep
Normal file
0
System/Core/.gitkeep
Normal file
0
System/Database/.gitkeep
Normal file
0
System/Database/.gitkeep
Normal file
0
System/Exceptions/.gitkeep
Normal file
0
System/Exceptions/.gitkeep
Normal file
0
System/Http/.gitkeep
Normal file
0
System/Http/.gitkeep
Normal file
0
System/Middleware/.gitkeep
Normal file
0
System/Middleware/.gitkeep
Normal file
0
System/Router/.gitkeep
Normal file
0
System/Router/.gitkeep
Normal file
0
System/View/.gitkeep
Normal file
0
System/View/.gitkeep
Normal file
11
bin/bicycle
Executable file
11
bin/bicycle
Executable 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
27
composer.json
Normal 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
0
config/.gitkeep
Normal file
0
tests/Unit/.gitkeep
Normal file
0
tests/Unit/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user