Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nabeghe/reflecty-php
Simple reflection helper for PHP.
https://github.com/nabeghe/reflecty-php
php php-helper php-helpers php-library php-reflection reflection
Last synced: 20 days ago
JSON representation
Simple reflection helper for PHP.
- Host: GitHub
- URL: https://github.com/nabeghe/reflecty-php
- Owner: nabeghe
- License: mit
- Created: 2024-10-22T18:01:24.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-12-18T01:55:01.000Z (27 days ago)
- Last Synced: 2024-12-18T02:40:54.333Z (27 days ago)
- Topics: php, php-helper, php-helpers, php-library, php-reflection, reflection
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mem (Simple Realtime Cache for PHP)
> Simple reflection helper for PHP.
## 🫡 Usage
### 🚀 Installation
You can install the package via composer:
```bash
composer require nabeghe/reflecty
```
### Example - Class Ancestors
```php
use Nabeghe\Reflecty\Reflecty;class Animal
{
}class Lion extends Animal
{
}class Cat extends Lion
{
}print_r(Reflecty::classAncestors(Cat::class));
/*
Array
(
[0] => Lion
[1] => Animal
)
*/
```
## 📖 License
Copyright (c) Hadi Akbarzadeh
Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.