Giter Club home page Giter Club logo

arden-php's Introduction

Arden-PHP

Build Status

Arden is a repository pattern library for php. It is a counterpart for Arden, which is a repository pattern gem for ruby.

You can use Arden to abstract and isolate your persistance logic in your application. It is recommended to use Arden with POPOs (Plain Old PHP Objects) as your data entities, but you could also use your own or some other base class.

Using POPOs for your data entities lets you design a better system, keeping your business logic away from your database. This will help you with testing since you will have a decoupled system.

Usage

You can use Arden with any PSR-0 compatible framework, or you can simply load the classes yourself.

You would generally have a repository class for each of your database tables. Simply extend a base Repository class as desribed in the below section.

Repository Drivers

There are currently the following repository drivers:

  • Kohana Framework

Kohana

The Kohana driver uses the built in kohana database builder module. Just extend Arden_Repository_Database.

Contributing

Contribution is welcome. Make sure you know about phpspec, BDD and all that jazz. When in doubt, ask about contributing.

Running Specs

Install composer, then run composer install.

Then run ./phpspec-composer.php specs -f d -b -c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.