Download the PHP package icanboogie/storage without Composer

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

Storage

Release Code Coverage Packagist

icanboogie/storage defines an API to store and retrieve values, while offering different storage backends.

Values can be stored using the runtime memory, Redis, APC, the file system… Storage collections retrieve and store values using multiple different storage instances, that usually range from the less expensive (and the more volatile) to the more expensive (and the more durable).

This package includes the following storage backends:

Installation

Storage

A storage is used to store a value and retrieve it later. A unique key is used to identify the value. Different storage store values using different mechanisms, and sometimes for a different period of time. It's always a good idea to choose the storage that best fits a situation, according to the persistence requirement and the expensiveness of the storage.

Note: Storage classes implement the Storage interface, including the StorageCollection class.

Time To Live

The Time To Live (TTL) of an item is the amount of seconds between when that item is stored and it is considered stale.

Warning: apc.use_request_time needs to be set to false if you want to use that feature with APCU.

Use storage like arrays

Storage implements the ArrayAccess interface and may be accessed as arrays.

Iterate storage keys

Storage implements the IteratorAggregate interface and may be used in a foreach to iterate their keys:

Adapter

The FileStorage storage uses adapters to write and read data written to the filesystem. Any class implementing the Adapter interface can be used, the following are provided with the package:

Storage collection

When implementing caches, it's always a good idea to use a collection of Storage instances that range from the less expensive (and the more volatile) to the more expensive (and the more durable).

The following example demonstrates how a storage collection can be created with multiple storage instances:

All the storage instances in the collection are updated by the store(), eliminate(), and clear() methods. Storage instances are also updated when values are retrieved from more expensive storages, so that the next time the value is requested it is retrieved from a less expensive storage.

Cache and Cache collection

The Cache interface and CacheCollection class implement a subset of the Storage interface and StorageCollection class, they only provide read-only features.

Support functions


Continuous Integration

The project is continuously tested by GitHub actions.

Tests Code Style

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you're expected to uphold this code.

Contributing

See CONTRIBUTING for details.


All versions of storage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 icanboogie/storage contains the following files

Loading the files please wait ....