Git Product home page Git Product logo

redbean's Introduction

RedBeanPHP 4

Build Status

RedBeanPHP is an easy to use ORM tool for PHP.

  • Automatically creates tables and columns as you go
  • No configuration, just fire and forget
  • No complicated package tools, no autoloaders, just ONE file

Installation via Composer

Just open your composer.json file and add the package name (e.g. "gabordemooij/redbean": "dev-master") in your require list.

{
    "require": {
        "gabordemooij/redbean": "dev-master"
    }
}

NOTE: You will find many examples on the redbean website make use of RedBean's R class. Because of namespaced autoloading in composer, this class will be available as \RedbeanPHP\R instead of R. If you desire to use the much shorter R class, you can utilize PHP's class_alias() function to take care of the job for you as so:

class_alias('\RedBeanPHP\R','\R');

If you are not using composer then try it.

Quick Example

How we store a book object with RedBeanPHP:

$book = R::dispense("book");
$book->author = "Santa Claus";
$book->title = "Secrets of Christmas";
$id = R::store( $book );

Yep, it's that simple.

More information

For more information about RedBeanPHP please consult the RedBeanPHP website:

http://www.redbeanphp.com/

redbean's People

Contributors

gabordemooij avatar daviddeutsch avatar tomasklapka avatar dontneedgithubaccount avatar simirimia avatar katanacrimson avatar seanhess avatar oivseblya avatar martinpenev avatar jstsch avatar deyv avatar f21 avatar hugollm avatar marcioalmada avatar steveedson avatar agvstin avatar brianhaveri avatar gaving avatar midnightmonster avatar sohelrana820 avatar zerotri avatar ducktype avatar palicao avatar brunocassol avatar dseguy avatar kadishmal avatar etisfo avatar r3wt avatar saetia avatar michaelklishin avatar

Watchers

Alexandre Parent avatar

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.