Download the PHP package theroadbunch/bouncer without Composer

On this page you can find all versions of the php package theroadbunch/bouncer. 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 bouncer

📋 Bouncer

Latest Stable Version License: MIT Build Status

What is Bouncer?

Bouncer is an easy-to-use allow/deny list interface.

Why the name Bouncer?

In the real-world, a bouncer holds the list of who is allowed entry and who is not.

Contents

  1. Installation
  2. Implementation
    1. Standard Usage
    2. Real-World Use-Case
  3. Bouncers
  4. Abstract Bouncer
  5. License

Install using composer [?]

composer require theroadbunch/bouncer

Implementation

Standard Usage

Use Bouncer::allow() or Bouncer::deny() to create your allow/deny lists (bouncer).

Update the Bouncer in real time

Using BouncerFactory::create()
This has been deprecated and will be removed from the documentation in version 2.4

Example of a real-world use-case

Bouncers

All bouncers implement RoadBunch\Bouncer\BouncerInterface

RoadBunch\Bouncer\AllowBouncer

method description return type
isAllowed(string $subject) returns true if the subject is on the allow list bool
allow(string $subject) Add this subject to the allow list void
deny(string $subject) Remove this subject from the allow list void

RoadBunch\Bouncer\DenyBouncer

method description return type
isAllowed(string $subject) returns true if the subject is NOT on the deny list bool
allow(string $subject) Remove this subject from the deny list void
deny(string $subject) Add this subject to the deny list void

Abstract Bouncer

RoadBunch\Bouncer\AbstractBouncer implements RoadBunch\Bouncer\BouncerInterface and is available to extend if you need to write your own logic to determine if a subject is allowed.

method description return type
has(string $subject) returns true if a subject is held in the subject pool bool
add(string $subject) Add this subject to the pool void
remove(string $subject) Remove this subject from the pool void

License

© Dan McAdams | The content of this library is released under the MIT License

You can find a copy of this license in http://opensource.org/licenses/mit.


All versions of bouncer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 theroadbunch/bouncer contains the following files

Loading the files please wait ....