2017 © Pedro Peláez
 

library datasource

Wrapper for arrays, pojos and Eloquent

image

tacone/datasource

Wrapper for arrays, pojos and Eloquent

  • Monday, November 2, 2015
  • by tacone
  • Repository
  • 1 Watchers
  • 1 Stars
  • 264 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DataSource

Build Status Coverage Status Scrutinizer Code Quality, (*1)

A generic, wrapper object to easily access arrays, plain objects, laravel models using the dotted syntax., (*2)

For eloquent models, accessing and saving of related models is supported, even though not all the relationship kinds are there yet., (*3)

$source = new DataSource(new Customer());
$source['name'] = 'Frank';
$source['surname'] = 'Sinatra';
$source['details.email'] = 'frank@example.com';
$source['details.twitter'] = '@therealfrankie';

$source->save();

Requirements

  • PHP 5.5.0
  • Laravel 4.2 or greater.

Laravel is not required if you only need to manipulate POJOs and arrays., (*4)

Testing

To test this package you need to install it under a working Laravel installation. Then cd in the package folder and run php unit., (*5)

If you just want to develop this package and want to set up an ad hoc installation of Laravel, you can use script/test-with-laravel.php., (*6)

The Versions

02/11 2015

dev-master

9999999-dev

Wrapper for arrays, pojos and Eloquent

  Sources   Download

The Requires

 

The Development Requires

by Avatar tacone

29/09 2015

0.1

0.1.0.0

Wrapper for arrays, pojos and Eloquent

  Sources   Download

The Requires

 

The Development Requires

by Avatar tacone