Search by

tereta / framework

tereta

0.0.5 2026-11-14 21:30 UTC

This package is not auto-updated.

Last update: 2026-11-15 17:46:35 UTC


README

Commands

  • php bin/console.php development:create class "Tereta\ApplicationExchange\Handlers\Klines" - creates new class in src/Handlers/Klines.php with namespace Tereta\ApplicationExchange\Handlers and class name Klines

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 server
  • compose docker:server:php - use the php internal server
  • compose 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.