2017 © Pedro Peláez
 

library route-protection

image

marcoazn89/route-protection

  • Tuesday, October 11, 2016
  • by marcoazn89
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,872 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

route-protection

Module to protect your routes based on roles + access type, (*1)

OAuth2 configuration

// Example. I bet you might want to request to make them work also based on GET, POST, etc, but for now get creative with the roles.

$config =  [
    '/api/account[/]' => [
      'admin' => ['web','curl']
    ],
    '/api/account/{id}[/]' => [
      'admin' => ['web','curl'],
      'partner' => ['web'],
      'user' => ['web']
    ]
]

The Versions

11/10 2016

dev-master

9999999-dev

  Sources   Download