Download the PHP package soandso/laravel-options without Composer

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

GitHub GitHub Workflow Status (event) GitHub top language GitHub release (latest by date) Packagist PHP Version Support GitHub code size in bytes GitHub Release Date Codacy coverage

Laravel options

Laravel service for global storing in database key-value structure data

Requirements

This library only requires PHP >= 8.0

Setup

Add the library to your composer.json file in your project:

Use composer to install the library:

You can also use composer on the command line to require and install Grouping:

You should publish the migration with

Run to migrate the table.

Usage

Facade

Set parameter value:

The parameter key must be unique to the Option entity Formats available for the parameter value - string, array

The method returns in case of successful setting of the parameter value or in case of an error

Get parameter value:

If there is no parameter for the specified key, the method will return

Check if the parameter with the given key exists

Returns or depending on the result

Delete a parameter by its key

Returns if deletion was successful, if deletion failed.

Helper function

With helper you can set options

helper will return the value of the option by its key `

Helper function checks if the parameter with the given key exists

Function deletes a parameter by its key

Console

The command to delete parameters is available in the console.

This command will delete all data. You can restrict deletion by the date of creation or last update of the parameter

Date must be in format. In this case, all parameters that are older than the specified date will be deleted.

License

Laravel option is licensed under the MIT License (https://github.com/appstract/laravel-options/blob/HEAD/LICENSE.md).


All versions of laravel-options with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
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 soandso/laravel-options contains the following files

Loading the files please wait ....