Install the package
Add the signed Enterprise release to your project and install its declared dependencies.
composer install --no-dev --classmap-authoritativeSet up a licensed Cimply.Work 4.0.3 project with a small, auditable application structure.
Add the signed Enterprise release to your project and install its declared dependencies.
composer install --no-dev --classmap-authoritativeKeep project configuration and controllers inside one named project folder.
backend/
├── license.key
├── projects/api/
│ ├── config.yml
│ ├── routing.yml
│ ├── globals.yml
│ └── controller/
└── vendor/Load the framework and execute the project. License validation happens before project services are registered.
$root = dirname(__DIR__);
(new Cimply\Work([$root . '/src']))
->app('api', $root . '/projects/api')
->run()?->execute();Map the request to a callable controller action and choose the response type.
status:
type: "application/json"
action: \Acme\Api\Controller\StatusCtrl::showThe runtime reads license.key above the projects directory. Version, host, consumer folder and project folder must match the signed claims.