package propreader
easy retrieve private properties
thapp/propreader
easy retrieve private properties
- Wednesday, February 10, 2016
- by iwyg
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
private property reader
, (*1)
, (*2)
a quick (and dirty) implementation based on @ocramius blog post on
fast object to array conversion., (*3)
Installation
> composer require thapp/propreader
Usage
<?php
class Foo
{
private $foo = 'bar';
private $bar = 'baz';
private $int = 0;
}
$reader = new \Thapp\PropReader\PropReader;
$props = $reader->read(new Foo, 'foo', 'bar'); // => ['foo' => 'bar', 'bar' => 'baz']
dev-master
9999999-dev
easy retrieve private properties
Sources
Download
MIT
The Requires
The Development Requires
by
iwyg