wtf/rest

Package for WTF Framework

1.0.4 2018-04-06 07:07 UTC

This package is auto-updated.

Last update: 2024-12-13 23:07:55 UTC


README

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)