Download the PHP package mreschke/keystone without Composer

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

Keystone

Keystone is a mrcore Laravel module that provides a key/value store wrapper on top of Redis. PHP values are stored into native redis values (SETS, LISTS, HASHES etc..). These native values provide more speed over basic serialization. Values are returned from redis into proper PHP objects.

Organization and Convention

Keystone is a key/value data store and therefore stores all information using string based keys. These keys are organized into namespaces. Namespaces follow the PHP vendor/package namespace convention. If no namespace is defined in the cofnig when storing a key, the default namespace of mreschke/foundation is used. It is up to you to use the proper namespaces when assigning keys. See Proper Key Layouts below for details. Keystone values can be strings, lists (arrays), hashes (associative arrays) or PHP serialized strings of any object or item. Because files are strings, keystone can also stores files of any size and type! If a value is above a certain byte limit, the value will be stored as an index file on the filesystem.

It is always best to try to store values as native redis formats, so arrays or associative arrays are best. Only use serialization when necessary as it is a PHP only format.

When storing many similar values such as app/api configuration information, try to use a single hash to hold all the values instead of a million individual keys.

Instance

To gain access to keystone via PHP you may use any of these methods. These are in order of preference. Proper PHP code states dependency injection is always the best method.

When storing values, I do not force or use compression. If you want to compress your data with PHP use gzencode() and gzdecode() instead of the other gz* PHP functions. gzencode() is a unix gzip compatible function so you can view the compressed file using all gz standards like zcat /myfile or gzunzip /myfile.

PHP API Usage

CLI Usage

Keystone comes with a laravel console application available at ./artisan keystone

I generally make a bash script in {{/usr/local/bin/keystone}} with

Commands parallel PHP API, so view that documentation above for more detail on these items.


All versions of keystone 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 mreschke/keystone contains the following files

Loading the files please wait ....