Download the PHP
package netflex/toolbox without Composer
On this page you can find all versions of the php package
netflex/toolbox. 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.
This toolbox is just collection of nice to haves that have been created during development of
sites. Quickly share or reuse your helpers.
Enforcing Trailing slashes
We have two components that helps us deal with the old netflex issue of all URLs enforcing
slashes at the end of the url. If you need to ensure this is the case, we can fake this quite easy.
We have a middleware that redirects all urls that does not end with a slash, to the same url with the trailing slash.
It is called add-slash and takes an optional parameter for redirect status code. For example add-slash:307. This
middleware only supports GET routes. Default status code is 302.
We have a new URLGenerator that can wrap your existing url generator but will ensure that urls returned by laravel
will have slashes.
Removing trailing slashes
We also have a middleware that will redirect to routes without a trailing slash, should one be supplied. This middleware
is called remove-slash
Commands
We've added a fair few functions of often repeated tasks when working with Netflex sites.
All functions are prefixed with tb:
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 netflex/toolbox 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.