Skip to content
REST API module for WTF Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.coveralls.yml
.gitignore
.php_cs.dist
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
_config.yml
composer.json
phpunit.xml.dist

README.md

REST module

Build Status Coverage Status

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

  1. \Wtf\Rest\Provider into your providers list (suit.php config)
  2. jwt_middleware into your middlewares list (suit.php config)
You can’t perform that action at this time.