PHPPM Bridge for CakePHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Bridges
.gitignore
.semver
CHANGELOG.md
CONTRIBUTING.md
LICENSE.txt
README.md
composer.json

README.md

CakePHP PHP PM Bridge

Alpha. Please use at your own risk.

CakePHP Bridge to use with PHP-PM project (https://github.com/php-pm/php-pm).

Requirements

  • CakePHP ^3.5
  • PHP ^5.6
  • phpcgi installed
  • php_pcntl extension installed and enabled

Setup

  • Via composer, add to your composer.json

    "symfony/console": "^3.0", "symfony/debug": "^3.0", "symfony/process": "^2.6", "cakedc/cakephp-phppm": "dev-master"

Note we need to downgrade symfony dependencies to make it work with the existing release of php-pm.

Run

  • Execute the PM via command line

    • For MAX performance

    vendor/bin/ppm --bridge='\CakeDC\PHPPM\Bridges\Cakephp' start --debug 0 --workers 16 --static-directory webroot > /dev/null

    • For development

    vendor/bin/ppm --bridge='\CakeDC\PHPPM\Bridges\Cakephp' start --debug 1 --workers 1 --static-directory webroot

Testing it

Important notes

  • This plugin bootstraps your application once, so ensure your bootstrap is not dynamic, for example, no dynamic routes coming from database based on request params.
  • Sessions: we didn't test how the session is interacting now with the bridge. Other bridges had issues with the session management.

Support

Commercial support is also available, contact us for more information.

Contributing

This repository follows the CakeDC Plugin Standard. If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our Contribution Guidelines for detailed instructions.

License

Copyright 2018 Cake Development Corporation (CakeDC). All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.