Download the PHP package proteins/filter without Composer

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

Protein | Filter

Class trait for permitting users to override data via callback hooks

Install


Require the global class via :

or the include the trait in your classes via :

Adding a filter


You can attach a filter function to a custom named group via the add method.

Multiple calls to the same group attach multiple filter functions.

You can assign a single callback to multiple filters defining them with an array of keys :

This is the same as :

You can also pass an array map filter => callback :

This is the same as :

Removing a filter


You can remove an attached filter function to a custom named group via the remove method.

You can remove all filters attached to a group by not passing the filter function.

Applying a filter


You can apply a filter to a value via the with method.

Example

Multiple fallback keys can be passed, the first non-empty queue will be used for the current filter.

Example

The title filter will be executed instead of the empty document.title.

Here the document.title filter will be executed instead of title.


All versions of filter with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
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 proteins/filter contains the following files

Loading the files please wait ....