Download the PHP package phlogisticfugu/squirt without Composer

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

squirt

Master: Build Status

Simple and lightweight PHP dependency injection with parameter overrides and more.

It is inspired by the ServiceBuilder in Guzzle 3, but simplifies and expands upon that.

see the wiki

Why squirt?

Basic Example

app_config.php - squirt config file

* Note that this is all that is needed to define how an application is wired up. There's no DI Container and new methods to learn. Note also that injected configuration values, like the log file location, are represented naturally alongside injected services.

MyApp/App.php - squirt-compatible end-user class

* Note that there is no configuration in the code, for proper separation

MyApp/Logger.php - squirt-compatible wrapper for a Monolog Logger

MyApp/GuzzleClient.php - squirt-compatible wrapper for a Guzzle 4 Client

run.php - normal squirt service-consuming script

run_nonsquirt.php - This illustrates what Squirt is doing under the hood.

Installation

Install squirt using composer. Create a file named composer.json

{
    "require": {
        "phlogisticfugu/squirt": "~1.0"
    }
}

then follow the installation instructions for composer.

Features

Config file inclusion, service extension, and overrides

As one uses squirt in a complex application, the configuration files will naturally get larger as more services are configured. To aid in organizing those files, configuration files may include one another.

example:

Squirt services can also extend one another, to permit configuration re-use and a cascade of defaults in a sensible manner.

example:

* Note that squirt supports deep overrides for configuration parameters

Finally, the consuming script can override anything set in the configurations with any additional overrides needed, perhaps to aid in some debugging or other configuration.

example:

* Note that squirt-configured services are normally cached so they behave like singletons, preventing unecessary instantiation. However, providing override parameters to the get() method disables that caching. One can also disable caching via get($serviceName,null,false).


All versions of squirt with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
psr/log Version ~1.0
doctrine/cache Version ~1.3.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 phlogisticfugu/squirt contains the following files

Loading the files please wait ....