Giter VIP home page Giter VIP logo

crimson's Introduction

My personal component framework. Used for proof of concepts, discussion and my personal projects. Each component is seperate. This is to provide loose coupling. However, some of the components are dependent on Zend Framework. Every component has the same directory structure so they can be used in any combination.
I try my best to make sure every component is bug free by providing unit tests with every component. However, I provide no guarantee that the component will work in your environment.

Build Status

Crimson\ExceptionHandler: A syslog friendly exception handler

The is a drop-in exception handler designed to provide exception stack traces in a syslog friend format.

The Crimson\ExceptionHandler does not force or check that PHP is logging to syslog. It expects the PHP ini "error_log" setting to be "syslog" before it catches an exception. If the value is set to some other file, it will log to that file instead.

Crimson\Json: An OO implementation of serializing objects into JSON

The Crimson\Json class is an object orienteded implementation for json_encode and json_decode. The added bonus is that Crimson\Json honors the Crimson\Encodable interface. This interface works very similiar to the Serializable interface in PHP core: Crimson\Json will call the respective encode/decode method of a class that implements Crimson\Encodable instead of calling the core json_encode/json_decode functions.

Example:

class Foo implements Crimson\Encodable
{
    protected $_data = array('hidden' => 'data');

    public function encode()
    {
        return json_encode($this->_data);
    }

    public function json_decode($value)
    {
        $this->_data = (array) json_decode($value);
    }
}

Crimson\Url: A set of URL utilities

The Crimson\Url class provides a set of factory methods that take advantage of PHP5.3's new anonymous function and closure features. This class is implemented in a way that is indepdent of the view. This allows the code to be accessible to the service layer without compromising the functionality available to the view.

crimson's People

Contributors

hjr3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

thinkbox

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.