PHPackages                             dijky/spot-service-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. dijky/spot-service-provider

ActiveLibrary[Database &amp; ORM](/categories/database)

dijky/spot-service-provider
===========================

A Pimple 3 ServiceProvider for the Spot2 ORM

v2.0.1(8y ago)252611BSD-3-ClausePHP

Since Nov 30Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Dijky/spot-service-provider)[ Packagist](https://packagist.org/packages/dijky/spot-service-provider)[ Docs](https://github.com/Dijky/spot-service-provider)[ RSS](/packages/dijky-spot-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (1)

spot-service-provider
=====================

[](#spot-service-provider)

`SpotServiceProvider` allows you to easily integrate the [Spot ORM](http://phpdatamapper.com/) with Pimple 3.

Installation
------------

[](#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
-----

[](#usage)

Register the `SpotServiceProvider` in your application bootstrap file:

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

```

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
--------

[](#services)

`SpotServiceProvider` exposes the following services:

- **spot**: The `Spot\Locator` instance to use the Spot ORM.
- **spot.config**: The `Spot\Config` instance to configure the **spot** service.

It takes the following configuration values:

- **spot.connections**: Set this to a key-value array (or Pimple container) with connection names as keys and connection strings (DSNs) or instances of `Doctrine\DBAL\Connection` as values.
- **spot.connections.default** (optional): Set this to the connection name that should be set as default. Unset with `null`.

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

License
-------

[](#license)

This software is provided under the *BSD 3-clause license*.
Refer to [LICENSE](./LICENSE) for the full license text.

Changelog
---------

[](#changelog)

### New in 2.0

[](#new-in-20)

- Add support for Pimple 3 (incl. Silex 2)
- \[BC BREAK\] Drop support for Silex 1.x / Pimple 1.x
- \[BC BREAK\] Change namespace to `Dijky\Pimple\...` from `Dijky\Silex\...`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~242 days

Total

5

Last Release

3214d ago

Major Versions

v0.1.0 → 1.0.x-dev2015-08-28

v1.0.0 → v2.0.02016-09-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b994b0ad90c7fa6213fa26d2965b85ba6b7040f3b8c2355b92fe6fd719b069f?d=identicon)[Dijky](/maintainers/Dijky)

---

Top Contributors

[![Dijky](https://avatars.githubusercontent.com/u/9408779?v=4)](https://github.com/Dijky "Dijky (5 commits)")[![Schottii](https://avatars.githubusercontent.com/u/205974288?v=4)](https://github.com/Schottii "Schottii (1 commits)")

---

Tags

ormspot2pimple

### Embed Badge

![Health badge](/badges/dijky-spot-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/dijky-spot-service-provider/health.svg)](https://phpackages.com/packages/dijky-spot-service-provider)
```

###  Alternatives

[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.1k286.5M762](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k118.8M366](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k75.1M146](/packages/beberlei-doctrineextensions)[dflydev/doctrine-orm-service-provider

Doctrine ORM Service Provider

2081.7M35](/packages/dflydev-doctrine-orm-service-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
