2017 © Pedro Peláez
 

library spot-service-provider

A Spot (DataMapper ORM) service provider for Silex

image

psamatt/spot-service-provider

A Spot (DataMapper ORM) service provider for Silex

  • Wednesday, November 12, 2014
  • by psamatt
  • Repository
  • 1 Watchers
  • 3 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SpotServiceProvider

A Spot ServiceProvider for Silex, (*1)

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

Usage

Passing a dsn string

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

$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:, (*4)

// 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, (*5)

Acknowledgement

Vance Lucas, (*6)

The Versions

12/11 2014

dev-master

9999999-dev

A Spot (DataMapper ORM) service provider for Silex

  Sources   Download

MIT

The Requires

 

by Matt Goodwin

silex

08/09 2013

dev-bugfixes

dev-bugfixes

A Spot (DataMapper ORM) service provider for Silex

  Sources   Download

MIT

The Requires

 

by Matt Goodwin

silex

08/09 2013

1.0.0

1.0.0.0

A Spot (DataMapper ORM) service provider for Silex

  Sources   Download

MIT

The Requires

 

by Matt Goodwin

silex

16/07 2013

v0.7

0.7.0.0

A Spot (DataMapper ORM) ServiceProvider for Silex for MySql

  Sources   Download

MIT

The Requires

 

by Matt Goodwin

silex