Skip to content

Latest commit

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PHP HTTP package

installation

composer.json

{
"require": {
/* ... */"statflo/php-http": "dev-master",
}
}

Usage

web/index.php

<?phpuseStatflo\HTTP\Main;
//$app = Silex\Application;
Main::run($app ?: null, [
'debug' => (bool) getenv('PHP_APP_DEBUG'),
'session' => $_SESSION,
'config_path' => dirname(__FILE__) . "/../config",
'parameters' => [
],
'controllers' => [
"/api/accounts" => [
['method' => 'get', 'class' => Statflo\Controller\Crm\Accounts::class, 'id' => 'statflo.controller.crm.accounts:findAll'],
],
"/api/accounts/merge" => [
['method' => 'post', 'class' => Statflo\Controller\Crm\Accounts::class, 'id' => 'statflo.controller.crm.accounts:merge'],
],
]
]);

About

PHP HTTP package

Resources

Stars

0 stars

Watchers

21 watching

Forks

Releases

Packages

Used by

Contributors

Languages