Allows reflection of object attributes, including inherited and non-public ones

Overview

sebastian/object-reflector

CI Status Type Coverage

Allows reflection of object attributes, including inherited and non-public ones.

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require sebastian/object-reflector

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

composer require --dev sebastian/object-reflector
Comments
  • TypeError: explode() expects parameter 2 to be string, integer given

    TypeError: explode() expects parameter 2 to be string, integer given

    Hi,

    After the composer update, the phpunit tests started to fail. Full log:

    TypeError: explode() expects parameter 2 to be string, integer given
    
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-reflector/src/ObjectReflector.php:34
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:71
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:78
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:78
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:63
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:78
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:78
    /htdocs/php-app/vendor/greg-md/php-orm/vendor/sebastian/object-enumerator/src/Enumerator.php:78
    

    PHP Version: 7.1

    opened by greg-md 2
  • install phpunit so slow

    install phpunit so slow

    hi: I am a coder from China。phpunit requires other repositories.
    so many repositories contain big files。such like sebastianbergmann/object-reflector,sebastian/recursion-context etc. there are all contain tools directory. The directory contains a big file。 so install so slow!!

    opened by dirklu 1
  • Enhancement: Modernize build automation

    Enhancement: Modernize build automation

    This PR

    • [x] modernizes the build automation
    • [x] runs friendsofphp/php-cs-fixer

    Fixes #4.

    💁‍♂ For reference, see https://github.com/localheinz/object-reflector/pull/1 (currently passes).

    opened by localheinz 1
  • Fix: Remove sudo configuration

    Fix: Remove sudo configuration

    This PR

    • [x] removes outdated sudo configuration from .travis.yml

    💁‍♂️ For reference, see https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration.

    opened by localheinz 1
  • Modernize build automation

    Modernize build automation

    • [ ] Use GitHub Actions instead of Travis CI
    • [x] Have Composer in tools/composer and managed through composer self-update (see update-tools target in build.xml
    • [x] Install Psalm using Phive as tools/psalm (phive install --copy psalm)
    • [x] Install PHP-CS-Fixer using Phive as tools/php-cs-fixer (phive install --copy php-cs-fixer)
    • [x] Create Psalm configuration
    • [ ] Add Psalm build step to GitHub Actions-based CI workflow
    • [ ] Add PHP-CS-Fixer build step to GitHub Actions-based CI workflow
    opened by sebastianbergmann 0
Owner
Sebastian Bergmann
Sebastian Bergmann is the creator of PHPUnit. He co-founded thePHP.cc and helps PHP teams build better software.
Sebastian Bergmann
Allows generate class files parse from json and map json to php object, including multi-level and complex objects;

nixihz/php-object Allows generate class files parse from json and map json to php object, including multi-level and complex objects; Installation You

zhixin 2 Sep 9, 2022
Behat Transliterator library inherited from Doctrine1 and used in Behat for snippet generation

Behat Transliterator Behat Transliterator provides transliteration utilities for PHP. Transliteration data are ported from the Perl Text-Unidecode mod

Behat 2k Dec 22, 2022
Easy management of Virtualization technologies including KVM, Xen, OpenVZ, Virtuozzo, and LXC/LXD including unified commands, monitoring, template management, and many more features.

ProVirted About Easy management of Virtualization technologies including KVM, Xen, OpenVZ, Virtuozzo, and LXC/LXD including unified commands, monitori

null 2 Aug 22, 2022
Custom torn signatures, like cheds ones, but with your own graphics.

torn-custom-signatures Basic Live signature creation script for Torn. Prerequesites: A file containing the apikeys in an array named as FACTION_ID-api

Dimitris Valilis 4 Nov 23, 2022
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.

IP is an immutable value object for (both version 4 and 6) IP addresses. Several helper methods are provided for ranges, broadcast and network address

Darsyn 224 Dec 28, 2022
A simple, standalone, modern PHP class inspector and mapper library, wrapping PHPs native reflection in a fluent interface

A simple, standalone, modern PHP class inspector and mapper library, wrapping PHPs native reflection in a fluent interface.

smpl 9 Sep 1, 2022
A PocketMine-MP plugin that allows you to comfortably register events using a new piece of PHP 8 power — attributes.

AdvancedEvents This is a PocketMine-MP plugin that allows you to comfortably register events using a new piece of PHP 8 power — attributes. Inspired b

JuraSciix 7 Dec 5, 2022
Your alter ego object. Takes the best of object and array worlds.

Supporting Opensource formapro\values is an MIT-licensed open source project with its ongoing development made possible entirely by the support of com

FormaPro 31 Jun 25, 2021
An article about alternative solution for convert object into a JSON Object for your api.

Do we really need a serializer for our JSON API? The last years I did build a lot of JSON APIs but personally was never happy about the magic of using

Alexander Schranz 1 Feb 1, 2022
This is an experiment to export all RFCs from the PHP wiki into Git, including the change history for each RFC (along with the date and author of each change). This is not meant to replace the wiki.

PHP Requests for Comments (RFCs) About This repository is an experiment to export all RFCs from the PHP wiki into Git, including the change history fo

Ben Ramsey 34 Jun 20, 2022
Source control integration plugin framework for MantisBT, including support for Github, Gitlab, Bitbucket, Gitweb, Cgit, Subversion, Mercurial and more

Source control integration plugin framework for MantisBT, including support for Github, Gitlab, Bitbucket, Gitweb, Cgit, Subversion, Mercurial and more

MantisBT Community Plugins 175 Sep 3, 2022
This Pocketmine-MP plugin is a plugin including a complete faction system.

SimpleFaction Simple faction plugin replacing FactionsPro which is no longer updated. Commands Command Name Command Description Available for /f help

Ayzrix 33 Dec 19, 2022
Composer Plugin for automatically including files for easing function usage in php.

Php Inc Php inc is a composer plugin for automatically including certain files into composer's autoload and autoload-dev files config. Given a set of

Krak 5 Jan 11, 2022
A XOOPS module for handling events, including online registrations.

wgEvents A XOOPS module for handling events, including online registrations. Support If you like the wgEvents module and thanks to the long process fo

XOOPS 2.5.x Modules 6 Dec 15, 2022
PhpCodeAnalyzer scans codebase and analyzes which non-built-in php extensions used

PhpCodeAnalyzer PhpCodeAnalyzer finds usage of different non-built-in extensions in your php code. This tool helps you understand how transportable yo

Sergey 92 Oct 19, 2022
IgAnalyzer - Find non-followers and potential stalkers.

igAnalyzer Features Shows mutual followers, non-followers and non-followings via pie chart Shows monthly followers via area chart Shows followers via

LIII 6 Sep 9, 2022
Cbe frontauth - A Textpattern plugin to manage backend connections from frontend and protect content from non-logged users

cbe_frontauth This client-side plugin lets your users (or you) manage backend connection from frontend, i.e. connect and disconnect as they (you) woul

null 4 Jan 31, 2020
PhpCodeAnalyzer scans codebase and analyzes which non-built-in php extensions used

PhpCodeAnalyzer PhpCodeAnalyzer finds usage of different non-built-in extensions in your php code. This tool helps you understand how transportable yo

Sergey 89 Jan 14, 2022
The package provides an expressive "fluent" way to define model attributes.

The package provides an expressive "fluent" way to define model attributes. It automatically builds casts at the runtime and adds a native autocompletion to the models' properties.

Boris Lepikhin 506 Dec 28, 2022