webx / routes-session
0.1.0
2016-07-13 12:09 UTC
Requires
- webx/routes: >=0.6.0
Requires (Dev)
- php: >=5.5.0
- larapack/dd: 1.0.0
- phpunit/phpunit: 4.8.16
This package is not auto-updated.
Last update: 2024-11-09 20:39:25 UTC
README
#WebX-Routes Session Provides session functionality to the WebX Routes framework
##How to install In your Routes project in the bootstrap action:
Minimum Routes version 0.6.0
use WebX\Routes\Session\Api\Session; RoutesBootstrap::run([function(Routes $routes, Session $session, Response $response) { $count = ($session->data("count") ?: 0) + 1; $response->typeJson(["count"=>$count]); $session->setData("count",$count); },"../vendor/webx/routes-session/config/routes"]);