wtf / rest
Package for WTF Framework
1.0.4
2018-04-06 07:07 UTC
Requires
- tuupola/slim-jwt-auth: ^3
- wtf/core: ^1
Replaces
- tisuit/rest: *
README
Installation
Install via Composer
composer require wtf/rest
Configure your app
Create config file jwt.php
:
<?php declare(strict_types=1); return [ "path" => "/api", "passthrough" => ["/api/login"], "secret" => 'JWT_SECRET', ];
Documentation: tuupola/slim-jwt-auth
Add new provider and middleware
\Wtf\Rest\Provider
into your providers list (suit.php
config)jwt_middleware
into your middlewares list (suit.php
config)