Download the PHP package meta-tech/pws-server without Composer
On this page you can find all versions of the php package meta-tech/pws-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meta-tech/pws-server
More information about meta-tech/pws-server
Files in meta-tech/pws-server
Package pws-server
Short Description PwsServer is a web application skeleton in silex2 managing web services through PwsAuth protocol
License MIT
Homepage https://github.com/meta-tech/pws-server
Informations about the package pws-server
MetaTech PwsServer
PwsServer is a web application skeleton in silex2 managing web services through PwsAuth protocol
Requirements
- PHP 7.0
- meta-tech/silex 2
- meta-tech/silex-core
- meta-tech/pws-client (to test ws)
Install
The package can be installed using Composer .
Or add the package to your composer.json
.
Usage
see MetaTech\Silex\Provider\ControllerServiceProvider to managing controllers & routing in application
Controller example :
pwsAuth
Authentication mecanism is already provided by the MetaTech\Silex\Ws\Controller
parent class
& the MetaTech\Silex\Ws\Authentication
handler (in meta-tech/silex-core package)
Check OtherWebService
to see another controller and deep routes inside rooting /ws entry point.
The main différence consist in no calling the parent routing method, however the pwsauth authentication
still be active.
The project now implement the checkUser
method via a userProvider
It use a MetaTech\Silex\Ws\Authentication
and MetaTech\Silex\Ws\Controller
subclasses :
the controller :
Test uris :
access through web browser :
- servername/
- servername/test
access through pws-client :
- servername/ws
- servername/ws/deep
- servername/ws/isauth
License
The project is released under the MIT license, see the LICENSE file.