EPIC Phails

My friend Robb just IM’d me to tell me he’s released a new PHP framework.

The source code is impressive! Using just three lines of code, you are able to create a website with tagging.

   /**
    * Phails can do anything!
    * Here is an example on how to create tagging for your site.
    */
   require_once('Phails.php');
   $Phails = new Phails;
   $Phails->tags->add(array('web 2.0', 'scalable', 'ORM'));
 

I always appreciate a lightweight framework, that isn’t overwrought.

/**
 * Phails
 *
 * Open Source Framework for PHP on Rails
 */

class Phails {
    /**
     * Constructor for Phails
     */
    public function __construct() {
        $this->_fail();
    }

    public function __get($var) {
        $this->_fail();
        return $this->$var = new Phails;
    }

    public function __set($var, $value) {
        $this->_fail();
    }

    public function __call($method, $args) {
        $this->_fail();
    }

    private function _fail() {
        echo "FAIL \n";
    }
}

Hmm, makes me jealous. I should be writing my own framework. I heard all the cool kids are doing it.

About tychay

light writing, word loving, ❤ coding
This entry was posted in PHP, PHP BLX and tagged . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.