fabrizio / map-php
Use map in PHP
v1.1
2021-08-21 00:31 UTC
Requires
- php: ^7.4|^8.0
Requires (Dev)
- monolog/monolog: ^2.3
README
Installation
Install the latest version with
$ composer require fabrizio/map-php
Basic Usage
<?php use Fabrizio\Map\Map; // create map $map = new Map(xClass::class, OtherClass::class); $xclass = new xClass(); $oclass = new OtherClass(); // put key & value $map->put($xclass,$oclass); // get value using key var_dump($map->get($xclass));
Author
@F4brizio - f4brizio.21@gmail.com
License
Monolog is licensed under the MIT License - see the LICENSE file for details