Download the PHP package calen/persist without Composer

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

Persist

Persist is a library intended to manage application settings. The settings persists every request and handle multiple drivers (currently file and database).

Installation

Add the repository as a dependency by running:

Then add the provider to the provider list in app.php:

You can then publish the packages configuration file by running

which will create the file persist.php in the config directory.

The configuration is pretty simple:

The publish will also create a migration file if you need to use the database driver.

Usage

The settings are stored as a JSON object in either the file or the database.

Persist comes with a Facade. You can add this facade to the facades list in app.php:

To publish a key: Persist::persist('name.subname.subsubname', 'value', true);.

The first parameter is the key to add. As the storage is JSON, the subname and subsubname are the nest in the JSON object. If the names and subnames do not exist, they will be created. The second parameter is the value to set to the key. The third parameter is optional and specifies if the save should be applied. default is false

To get a key, use: Persist::get('name.subname.subsubname');

with the path in the object. If the path is not a leaf in the tree, it will return the tree corresponding as an array.

To forget a key, use: Persist:forget('name.subname.subsubname', true);

which will simple remove the key.

Packagist

My packagist repo is available here : https://packagist.org/packages/calen/persist


All versions of persist with dependencies

PHP Build Version
Package Version
No 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 calen/persist contains the following files

Loading the files please wait ....