Download the PHP package b3it/laravel-memcached-plus without Composer

On this page you can find all versions of the php package b3it/laravel-memcached-plus. 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 laravel-memcached-plus

laravel-memcached-plus

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Summary

This package is useful for Laravel 5.0 - 5.2. From 5.3 onwards two PRs I submitted to laravel/framework have been merged, therefore the features of this package are available out-the-box with Laravel 5.3 onwards.

Integrating with cloud memcached services such as MemCachier and memcached cloud can require memcached features not available with the built-in Laravel Cache memcached driver from version 5.0 to 5.2.

These include:

Adding 3 new configuration items, this package enhances the built-in Laravel 5 Cache memcached driver. Optionally, this package also allows these extra configuration items to be used for memcached Sessions.

Read on for detailed instructions - you may find it useful to reference the demo app at the same time.

Requirements

Installation

Available to install as a Composer package on Packagist, all you need to do is:

composer require b3it/laravel-memcached-plus

If your local environment does not meet the requirements you may need to append the ignore-platform-reqs option:

composer require b3it/laravel-memcached-plus --ignore-platform-reqs

Configuration

Once installed you can use this package to enhance the Laravel Cache and Session services.

Providers

This section discusses the Laravel application configuration file app/config.php.

In the providers array you need to replace following built-in Service Providers:

A recommended approach is to comment out the built-in providers and append the Service Providers from this package:

The B3IT\MemcachedPlus\SessionServiceProvider is optional. You only need to add this if:

Cache

This section discusses the Laravel cache configuration file config/cache.php.

This package makes the following extra configuration items available for use with a memcached store:

These may be used in a store config like so:

Note that as this package enhances the built-in Laravel 5 memcached Cache driver, the driver string remains memcached.

In case you are unfamiliar with how to use multiple cache stores in Laravel, you would access this store from your application code like so:

Session

This section discusses the Laravel session configuration file config/session.php.

If you are using memcached sessions you will have set the driver configuration item to 'memcached'.

If you have added the B3IT\MemcachedPlus\SessionServiceProvider as discussed above, the store configuration item is available. This is explained in the following new snippet you can paste into your session configuration file:

To use the previous memcached 'plus' store example with sessions you would set this as follows:

Breaking changes between v3 and v4

The configuration of Memcached options has been updated to use the Memcached constants rather than the string constant name.

The session.memcached_store variable has been renamed to session.store.

laravel-memcached-plus in action

I created a demo app for you to see how this package integrates with Laravel 5 and how you could run it on Heroku.

Support

Please do let me know if you have any comments or queries.

Thanks!


All versions of laravel-memcached-plus with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-memcached Version *
illuminate/cache Version 5.*
illuminate/session Version 5.*
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 b3it/laravel-memcached-plus contains the following files

Loading the files please wait ....