PHPackages                             jgswift/prototypr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jgswift/prototypr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jgswift/prototypr
=================

PHP 5.5+ object prototyping system using traits

25PHP

Since Jun 2Pushed 11y ago2 watchersCompare

[ Source](https://github.com/jgswift/prototypr)[ Packagist](https://packagist.org/packages/jgswift/prototypr)[ RSS](/packages/jgswift-prototypr/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

prototypr
=========

[](#prototypr)

PHP 5.5+ object prototyping system using traits

[![Build Status](https://camo.githubusercontent.com/9c7badfa794aa8bcbb42c2fd9944c8b2520614087fa29ed781d02442d69343cb/68747470733a2f2f7472617669732d63692e6f72672f6a6773776966742f70726f746f747970722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jgswift/prototypr)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7152c237e6d54110d35814e9823cc63380ab6e337f7836ad566464b2683799d1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6773776966742f70726f746f747970722f6261646765732f7175616c6974792d73636f72652e706e673f733d36383532316636376363613065656132653831303664323765356165333130396239343035633930)](https://scrutinizer-ci.com/g/jgswift/prototypr/)

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/):

```
php composer.phar require jgswift/prototypr:dev-master
```

Usage
-----

[](#usage)

Prototypr is a lightweight php trait that enables easy object prototyping with magic methods. Prototypr aims to add simple prototypal behavior to php without intruding on your domain model

The following is a minimal example

```
