Richard Holloway Blog

RjhRedbean is now available on packagist

Posted in October 2012 by under redbeanphp

When I wrote RjhRedbean, I thought it would be useful to make it easier for me to get RedBeanPHP ORM set up in my own projects. I never expected anyone else to use it.

Recently though, I have received emails and found questions on stackoverflow and people are using it in their Zend Framework 2 projects too. I am happy to see it is providing some value to others but it has also raised questions relating to installation and configuration.

So I wrote up some installation notes, and explained how to add my github repository to your composer sources. Although this is a minor thing to have to do, I felt that I was making things harder than they needed to be.

So I have setup RjhRedbean on Packagist and you can now easily add RjhRedbean to an existing Zend Framework 2 application by editing your composer.json file and running a composer install. To install RjhRedbean into the Zend Skeleton Application, would require the following composer.json file

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for Zend Framework 2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "gabordemooij/redbean": "dev-master",
        "richardjh/rjhredbean": "dev-master"
    }
}
            

You can find out more on the Github project README file and if you find any problems or think things can be explained better, please let me know.