Download the PHP
package caiosalchesttes/laravel-flag without Composer
On this page you can find all versions of the php package
caiosalchesttes/laravel-flag. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor caiosalchesttes Package laravel-flag Short Description Laravel Flag is a package that allows you to create flags in your database tables. License
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 library aims to add an additional column in the tables, which can be used as a "cache" to add and remove flags.
The cache column can be useful for storing temporary information that is used by the application but doesn't need to be permanent. It can be used, for example, to store session information or to mark records for deletion in a batch operation.
The library provides the following methods:
Add Flag to Cache Column of a Specific Record Remove Flag from Cache Column of a Specific Record Query the Flag Value in a Specific Record Thus, you can manage the flags stored in the cache column efficiently and conveniently.
Installation
We must add in your migrations to generate the column
After that you can put in your model what you want to use
Some methods you can use
Add
Add persist
Remove flag
Remove flag persist
Clear all flags
Has flag
Get flag
Get all flags
License
MIT License (MIT). Please, read the License File for more informations.
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 caiosalchesttes/laravel-flag 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.