2017 © Pedro Peláez
 

helper granite

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

image

simplifie/granite

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  • Monday, February 22, 2016
  • by prezire
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Project Granite

by Simplifie

A collection of useful generic classes, traits and interfaces independent of any structure or framework., (*1)

Installation

composer require simplifie/granite

Usage

Stop re-creating authentications and CRUD methods over and over again especially when using native PHP codes., (*2)

  • Refer to the samples found in vendor/simplifie/granite/index.php file
  • Also refer to the sample model implementation in vendor/simplifie/granite/models/somemodel.php
  • Refer to the SQL files found in vendor/simplifie/granite/models directory when doing migrations
  • In cases when you're using a framework, just link it to the vendor/autoload.php file
CRUD
class SomeModel {use simplifie\TCrud; }
class SomeCtrl
{
    $m->setTableName('users');
    print_r($m->read(2));
}
Auth
class SomeModel { use simplifie\TAuth; }
class SomeCtrl
{
    $m->setId(2);
    echo $m->isPermitted(['User']);
}

Contributors

The Versions

22/02 2016

dev-master

9999999-dev

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  Sources   Download

MIT

by Mark N. Amoin

22/02 2016

1.0.4

1.0.4.0

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  Sources   Download

MIT

by Mark N. Amoin

22/02 2016

1.0.3

1.0.3.0

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  Sources   Download

MIT

by Mark N. Amoin

22/02 2016

1.0.2

1.0.2.0

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  Sources   Download

MIT

by Mark N. Amoin

19/02 2016

1.0.1

1.0.1.0

A collection of generic classes, traits and interfaces that are useful and independent of any structure or framework.

  Sources   Download

MIT

by Mark N. Amoin