Download the PHP package dijky/spot-service-provider without Composer

On this page you can find all versions of the php package dijky/spot-service-provider. 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 spot-service-provider

spot-service-provider

SpotServiceProvider allows you to easily integrate the Spot ORM with Pimple 3.

Installation

Simply require the composer package in your application:

composer require dijky/spot-service-provider

or in your composer.json:

{
  ...
  "require": {
    "dijky/spot-service-provider": "~2.0"
  }
}

If you don't use Composer, clone the Git repository or download the zipball.
You will have to do autoloading yourself then.

Usage

Register the SpotServiceProvider in your application bootstrap file:

$app->register(new Dijky\Pimple\Provider\SpotServiceProvider(), array(
  'spot.connections' => array(
    'website' => '<dsn>',
    'forum' => '<dsn>'
  )
));

You can add as many connections as you like.

The service provider also takes connections already configured for DoctrineServiceProvider:

$app['spot.connections'] = function() use ($app) {
  return $app['dbs'];
};

Notice the closure? This way, the dbs service will only be accessed (and initialized) as needed.
You can still override or extend it later on in your bootstrap code.

The first connection in $app['spot.connections'] will be set as default.
The default connection can also be set to connection abc with

$app['spot.connections.default'] = 'abc';

Services

SpotServiceProvider exposes the following services:

It takes the following configuration values:

Notice: once the spot service is first accessed, changing spot.config, spot.connections, or spot.connections.default will have no effect on it.

License

This software is provided under the BSD 3-clause license.
Refer to LICENSE for the full license text.

Changelog

New in 2.0


All versions of spot-service-provider with dependencies

PHP Build Version
Package Version
Requires pimple/pimple Version ~3.0
vlucas/spot2 Version ~2.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 dijky/spot-service-provider contains the following files

Loading the files please wait ....