Download the PHP package omniphp/omniphp without Composer
On this page you can find all versions of the php package omniphp/omniphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package omniphp
OmniPHP Skeleton
Ready-to-run project layout for the OmniPHP framework.
Layout
One process per concern: server.php serves HTTP, worker.php consumes queues. Both
require bootstrap.php first, so the same configuration and hooks apply everywhere.
Daily commands
| Change | Command |
|---|---|
| Handler / service code | php server.php reload |
routes.php, any app/*/routes.php |
php server.php restart -d (routes are registered in the master) |
Queue handler, config/queue.php |
php worker.php restart -d |
.env |
restart both — reload does not re-read the environment |
Adding things
- A new endpoint: a method on a class in
app/Api/Handlers/, one line inapp/Api/routes.php. - A queue job: implement
OmniPHP\Queue\HandlerInterface, register it underhandlersinconfig/queue.php, push with(new OmniPHP\Queue\Producer())->push('job_name', [...]). - A migration: drop a file in
database/migrations/returning aMigrationsubclass withup(). - Another project (say
Mobile): createapp/Mobile/{Handlers,routes.php}andrequireit fromroutes.php. Namespaces follow the folders (App\Mobile\Handlers\...) with no extra config.
License
MIT
All versions of omniphp with dependencies
PHP Build Version
Package Version
The package omniphp/omniphp contains the following files
Loading the files please wait ...