Download the PHP package jameslevi/nest without Composer

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

Nest

Is a simple file-based PHP caching library.

Features

  1. Uses PHP's opcache to cache static data.
  2. Create multiple cache databases.
  3. Easy integration with any PHP framework or use with no framework at all.

Installation

  1. You can install via composer.

  2. If not using any framework, paste the following code to load the autoloader in your project.

  3. Import nest into your project.

  4. Set the default storage path for your project.

  5. Set the default hash algorithm to use. The default algorithm is "md5".

Basic Example

Let us try a simple caching for database configuration.

This will generate a PHP file with the following content.

Getting Started

  1. You can get values using the "get" method.

  2. You can add new key-value using "add" method.

  3. You can update key values using "set" method.

  4. All added or updated data will be only saved unless you call the "write" method.

  5. You can check if a key-value exists using "has" method.

  6. You can remove a key-value using "remove" method.

  7. You can return cache data as array using "toArray" method.

  8. You can return json formatted cache data using "toJson" method.

Using Nest Facade

  1. You can return nest instance by calling a static method that defines the name of your cache database.

  2. You can return key-value by providing the first argument.

  3. You can update data by providingthe second argument.

  4. You can add new data by calling "add" method.

  5. You can remove key-value using "remove" method.

Clear Cache

You can clear a cache database using "destroy" method.

You can clear all your cache database using "destroyAll" method.

Contribution

For issues, concerns and suggestions, you can email James Crisostomo via [email protected].

License

This package is an open-sourced software licensed under MIT License.


All versions of nest with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
jameslevi/objectify Version ^1.0
jameslevi/string Version ^1.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 jameslevi/nest contains the following files

Loading the files please wait ....