PHPackages                             psamatt/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. psamatt/spot-service-provider

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

psamatt/spot-service-provider
=============================

A Spot (DataMapper ORM) service provider for Silex

1.0.0(12y ago)344[1 issues](https://github.com/psamatt/SpotServiceProvider/issues)[2 PRs](https://github.com/psamatt/SpotServiceProvider/pulls)MITPHPPHP &gt;=5.3.2

Since Jul 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/psamatt/SpotServiceProvider)[ Packagist](https://packagist.org/packages/psamatt/spot-service-provider)[ RSS](/packages/psamatt-spot-service-provider/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

SpotServiceProvider
===================

[](#spotserviceprovider)

A [Spot](https://github.com/vlucas/Spot) ServiceProvider for [Silex](http://silex.sensiolabs.org)

Spot is a lightweight DataMapper written for PHP5.3+, its really easy to use and perfect for a small application built in Silex

Usage
-----

[](#usage)

### Passing a dsn string

[](#passing-a-dsn-string)

In order to connect to your MySQL database, pass a valid DSN string into the provider

```
$app->register(
    new Psamatt\Silex\SpotServiceProvider('mysql://username:password@localhost/db_name')
);
```

In your `index.php`, you can then interact with `Spot` with the following lines:

```
// Find all the posts from the database where the status is 1
$app['spot']->all('Entity\Post', array('status' => 1));

// Find one post where the title is Test Post
$app['spot']->first('Entity\Post', array('title' => "Test Post"));
```

For more information on how to use `Spot`, see the [github repository page](https://github.com/vlucas/Spot)

#### Acknowledgement

[](#acknowledgement)

[Vance Lucas](https://github.com/vlucas)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~54 days

Total

2

Last Release

4678d ago

Major Versions

v0.7 → 1.0.02013-09-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa81051b9cb15d4cc4c836d4fddfa4b98f1ed094a232f255810a12b7d171bf2d?d=identicon)[psamatt](/maintainers/psamatt)

---

Top Contributors

[![psamatt](https://avatars.githubusercontent.com/u/1199265?v=4)](https://github.com/psamatt "psamatt (14 commits)")[![royopa](https://avatars.githubusercontent.com/u/442991?v=4)](https://github.com/royopa "royopa (1 commits)")

---

Tags

silex

### Embed Badge

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

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

###  Alternatives

[csanquer/pdo-service-provider

a PDO database service provider for silex

19199.0k](/packages/csanquer-pdo-service-provider)[dbtlr/silex-doctrine-migrations

Doctrine migration service provider for Silex

1124.5k1](/packages/dbtlr-silex-doctrine-migrations)[moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

118.5k](/packages/moriony-silex-mongo-provider)

PHPackages © 2026

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