Download the PHP
package vestd/feature-flags without Composer
On this page you can find all versions of the php package
vestd/feature-flags. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor vestd Package feature-flags Short Description Feature flags License
MIT
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 is a basic Laravel 5 package for implementing feature flags.
Installation
First, pull in the package through Composer.
And then, if using Laravel 5, include the service provider within app/config/app.php.
And finally publish the config file, this will be where you put the feature flag configuration
Usage in Laravel
Within your codebase use Laravel's dependency injection to load in the FeatureFlags container.
You can then call the get method to retrieve a previously configured feature flag.
If the flag doesn't exist an exception will be thrown.
Configuration
In its simplest form the configuration file will allow to to specify a key and a true or false flag
The alternative method is an associative array for the keys, using this method you can specify which users or
groups would have access to the feature
If you use the more complex features you can check the state by using the following isEnabled checks
Coming soon
The ability to configure the flags through a method other than a fixed config file, i.e. a database
Contributing
Contributions are accepted but this package is being developed primarily for use within the Vestd app so if your use case
differs too much from what we need it may not be accepted.
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 vestd/feature-flags 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.