Download the PHP package kokspflanze/bjy-authorize without Composer

On this page you can find all versions of the php package kokspflanze/bjy-authorize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bjy-authorize

BjyAuthorize - Acl security for Laminas

Continuous Integration Total Downloads Latest Stable Version

This module is designed to provide a facade for Laminas\Permissions\Acl that will ease its usage with modules and applications. By default, it provides simple setup via config files or by using Laminas\Db or Doctrine ORM/ODM.

Information

This is a fork of the original bjyoungblood/BjyAuthorize module. I added Laminas support, so starting with release 2.0.0 the module works with Laminas. Releases from the 1.x series are still targeted at Zend Framework 2 and 3. If you found a bug, please report it, just pm me in gitter or open a PullRequest.

What does BjyAuthorize do?

BjyAuthorize adds event listeners to your application so that you have a "security" or "firewall" that disallows unauthorized access to your controllers or routes.

This is what a normal Laminas\Mvc application workflow would look like:

Laminas Mvc Application workflow

And here's how it would look like with BjyAuthorize enabled:

Laminas Mvc Application workflow with BjyAuthorize

Requirements

Installation

Composer

The suggested installation method is via composer:

Configuration

Following steps apply if you want to use LmcUser with Laminas\Db. If you want to use Doctrine ORM/ODM, you should also check the doctrine documentation.

  1. Ensure that following modules are enabled in your application.config.php file in the this order:
    • LmcUser
    • BjyAuthorize
  2. Import the SQL schema located in ./vendor/BjyAuthorize/data/schema.sql.
  3. Create a ./config/autoload/bjyauthorize.global.php file and fill it with configuration variable values as described in the following annotated example.

Here is an annotated sample configuration file:

Helpers and Plugins

There are view helpers and controller plugins registered for this module. In either a controller or a view script, you can call , which will query the ACL using the currently authenticated (or default) user's roles.

Whenever you need to stop processing your action you can throw an UnAuthorizedException and users will see you message on a 403 page.

License

Released under the MIT License. See file LICENSE included with the source code for this project for a copy of the licensing terms.


All versions of bjy-authorize with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
laminas/laminas-permissions-acl Version ^2.8.0
laminas/laminas-mvc Version ^3.2.0
laminas/laminas-eventmanager Version ^3.4.0
laminas/laminas-servicemanager Version ^3.7.0
laminas/laminas-http Version ^2.15.0
laminas/laminas-view Version ^2.14.2
laminas/laminas-authentication Version ^2.8.0
laminas/laminas-cache Version ^2.13.2 || ^3.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kokspflanze/bjy-authorize contains the following files

Loading the files please wait ....