{"id":18576102,"url":"https://github.com/thiagodp/rtti","last_synced_at":"2025-05-16T00:34:44.559Z","repository":{"id":57040950,"uuid":"44768137","full_name":"thiagodp/rtti","owner":"thiagodp","description":"A Run-Time Type Information extractor, useful for getting/setting private attributes from/to PHP objects.","archived":false,"fork":false,"pushed_at":"2018-01-27T17:00:58.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T18:08:46.191Z","etag":null,"topics":["attribute","class","php","phputil","run-time","type"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiagodp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-22T19:25:01.000Z","updated_at":"2018-01-27T17:01:47.000Z","dependencies_parsed_at":"2022-08-24T01:10:36.937Z","dependency_job_id":null,"html_url":"https://github.com/thiagodp/rtti","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Frtti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Frtti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Frtti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Frtti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagodp","download_url":"https://codeload.github.com/thiagodp/rtti/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254447884,"owners_count":22072755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute","class","php","phputil","run-time","type"],"created_at":"2024-11-06T23:23:35.285Z","updated_at":"2025-05-16T00:34:44.486Z","avatar_url":"https://github.com/thiagodp.png","language":"PHP","readme":"# RTTI\n\nA Run-Time Type Information extractor, useful for getting or setting private and protected attributes from/to PHP objects.\n\nWe use [semantic versioning](http://semver.org/). See [our releases](https://github.com/thiagodp/rtti/releases).\n\nClasses:\n\n* [phputil\\RTTI](https://github.com/thiagodp/rtti/blob/master/lib/RTTI.php)\n\n### Installation\n\n```command\ncomposer require phputil/rtti\n```\n\n### Example\n\nExtracting all attributes from a class (even `private` or `protected`).\n\n```php\n\u003c?php\nrequire_once 'vendor/autoload.php'; // or 'RTTI.php' when not using composer\n\nuse phputil\\RTTI;\n\nclass User {\n\tprivate $name;\n\tfunction __construct( $n ) { $this-\u003ename = $n; }\n\tfunction getName() { return $this-\u003ename; }\n}\n\n// array( 'user' =\u003e 'Bob' )\nvar_dump( RTTI::getAttributes( new User( 'Bob' ), RTTI::allFlags() ) );\n?\u003e\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/) (c) [Thiago Delgado Pinto](https://github.com/thiagodp)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Frtti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagodp%2Frtti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Frtti/lists"}