Download the PHP
package phpfluent/filter without Composer
On this page you can find all versions of the php package
phpfluent/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.
PHPFluent\Filter is namespaced, but you can make your life easier by importing a single class into your context:
Calling a filter
Calling multiple filters
Calling native PHP functions
Non-static API
You also can simply create an instance of PHPFluent\Filter\Builder.
Calling Builder class
PHPFluent\Filter\Builder implements __invoke() method, so you can do like:
Custom filters
You can use your own Zend filters.
For that purpose we provide a way to add your own namespaces/prefixes:
So, in the example above v::myFilter() will call My\Filter\PrefixMyFilter.
You can implement your own filter.
Filter factory
To create the filters by its name we use our Factory; there are two ways to change the Factory to be used.
Static calls
In the example above the defined factory will be used for all static calls.
Non-static calls
In the example above the defined factory will be used only for the $builder instance variable.
As you could note, the factory instance if optional, so, when you did defined a factory for the builder object it will
use the default one, defined on getDefaultFactory().
PHPFluent filters
key()
Allows to perform filters over an array key.
If you're looking for something more specific you should take a look on
Zend\InputFilter.
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 phpfluent/filter contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.