tereta / framework
Requires
- php: >=8.2
- tereta/application: @dev
- tereta/application-menu: @dev
- tereta/application-migration: @dev
- tereta/application-page: @dev
Requires (Dev)
- tereta/application-development: @dev
- tereta/development: @dev
- wikimedia/composer-merge-plugin: ^2.1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Commands
php bin/console.php development:create class "Tereta\ApplicationExchange\Handlers\Klines"- creates new class insrc/Handlers/Klines.phpwith namespaceTereta\ApplicationExchange\Handlersand class nameKlines
Structure
Each package has the following structure in the packages/ directory:
packages/
tereta/
router/
http/
container/
events/
config/
console/
server/
...
Directory packages/vendor/module it is the structure of the package, where vendor is the vendor name and module is the module name.
Servers
Use the docker conteiners to test is locally:
compose docker:server:nginx- use the nginx servercompose docker:server:php- use the php internal servercompose docker:server:swoole- use the swoole server
Developer
Packages
To create new package, it should be created at the packages/tereta/packageName.
Use the composer docker:console development:create package <vendor/pakageName> command to create new package with the correct structure.
Classes
To create new class, use the composer docker:console development:create class <Vendor\PackageName\Path\ClassName> command to create new class with the correct namespace and class name.
Console Classes
To create new console class, use the composer docker:console development:create console <Vendor\PackageName\Path\ClassName> will create new console class with the correct namespace and class name.