dev-master
9999999-dev https://github.com/ProjetPP/PPP-LibModule-PHPLib that helps the creation of PHP modules for the PPP
MIT
The Requires
- php >=5.3.0
- ppp/data-model *
ppp
Lib that helps the creation of PHP modules for the PPP
On Packagist:
, (*2)
Use one of the below methods:, (*3)
1 - Use composer to install the library and all its dependencies using the master branch:, (*4)
composer require "ppp/libmodule":"dev-master"
2 - Create a composer.json file that just defines a dependency on version 0.2 of this package, and run 'composer install' in the directory:, (*5)
{ "require": { "ppp/ppp/libmodule"": "~0.2.0" } }
Here is a small usage example:, (*6)
// Load everything require_once(__DIR__ . "/vendor/autoload.php"); // A very simple class implementing RequestHandler interface class MyRequestHandler implements PPP\Module\RequestHandler { public function buildResponse(PPP\Module\DataModel\ModuleRequest $request) { return new PPP\Module\DataModel\ModuleResponse( $request->getLanguageCode(), new PPP\DataModel\MissingNode(), 0 ); } } // Lets run the entry point! $entryPoint = new PPP\Module\ModuleEntryPoint(new MyRequestHandler()); $entryPoint->exec();
Lib that helps the creation of PHP modules for the PPP
MIT
ppp