Download the PHP package dozoisch/cachedbuzz without Composer

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

CachedBuzzBundle

This bundle is meant to provide a way to cache request made with the buzz bundle. This bundle can be used exactly like buzz, the cache is integrated directly. The bundle is under the MIT license. For more information see the file called LICENSE in the root of the path.

Installation

  1. Add this to the composer.json:

  2. Enable the bundle in app/AppKernel.php:

Configuration

No setting is mandatory as every thing fallback to a default setting or a default implementation provided by the bundle. The default cache uses APC. If the module is not available on your web server, the module initialization will fail.

Here is the full configuration (in yaml) possible, with the defaults value :

In the http_client is used to configure the buzz client. The cache setting takes a string that should be a class or a service. Same thing for the validator.

The cache has to implement the class Dozoisch\CachedBuzzBundle\Cache\CacheInterface.
The validator has to implement the class Dozoisch\CachedBuzzBundle\Cache\CacheValidatorInterface.

Running as a Service

To run the Cached Buzz Bundle as a service, insert this into your services.yml file:

When using it like that it overrides some of the normal bundles setting and thus, the cacher and client parameters for the browser are no longer optional.

How to use it

You can now call the browser just as you would with any other service.

Container aware class

If you wish to call it from a container aware class, a controller for example, just do $this->get('dozoisch.buzz.browser');.

Non-container aware class

To call it from a service which is not container aware, first add this to your services.yml

And make sure to have the appropriate constructor in your class :

Actually using it

After retrieving the browser, you can use it as you would with the normal buzz browser. This bundles is meant to be used seamlessly over the normal buzz instance.

The available functions are post, head, patch, put, delete.


All versions of cachedbuzz with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
kriswallsmith/buzz Version >=0.10
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 dozoisch/cachedbuzz contains the following files

Loading the files please wait ....