2017 © Pedro Peláez
 

package propreader

easy retrieve private properties

image

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

The README.md

private property reader

Author Source Code Software License, (*1)

Build Status Code Coverage HHVM, (*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']

The Versions

10/02 2016

dev-master

9999999-dev

easy retrieve private properties

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar iwyg