Download the PHP package motomedialab/runtime-store without Composer

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

Runtime data store - simple runtime value caching

Latest Version on Packagist
StyleCI Code Quality
Build Status
Total Downloads

A simple framework-agnostic package (that plays particularly nicely with Laravel's app container, see here) that allows caching of values for the duration of a requests lifetime.

This is particularly useful in cases where scripts may be called on multiple times and depend on
third parties or query calls to return data.

Installation

You can install the package via composer:

Usage

Runtime store comes with a global helper store() which uses the singleton pattern and we recommend using.
However, there are multiple ways of accessing the Runtime Store as its framework agnostic, see here.

The package utilises a similar API to Laravel's cache and session helpers, as demonstrated below.

Grouping

As of v1.2, you can create groups. Groups have the exact same API as above, with a few extras methods to easily create and delete groups.


Accessing the store

There are many ways to access the store and you can write your own implementation quickly and easily.

Accessing from within a class

We've built a handy trait which you can use in your classes to instantly boot up a grouped store, scoped to that class name. In the example below, any values will be set within a group called YourClass automatically.

Further implementations

We've covered off pretty much everything above but if you're looking to implement the RuntimeStore in your own way, here's a couple of examples...


Testing

We've carried out extensive testing to make sure everything works as expected, but feel free to try it yourself!

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate, a super handy
package templating application.


All versions of runtime-store 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 motomedialab/runtime-store contains the following files

Loading the files please wait ....