An open API service indexing awesome lists of open source software.

https://github.com/fgh151/php-a2o-extension


https://github.com/fgh151/php-a2o-extension

extension php zephir

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# Array to object php extension

## Dependencies

[Zephir](https://zephir-lang.com/)

## Compile

```shell script
./build.sh
```

## Usage example

```php
class User
{
public $name;
}

$user = new User();
$source = [
'name' => 'Fedor'
];

A2o\Mapper::map($source, $user);

var_dump($user);

// object(User)#1 (1) {
// ["name"]=>
// string(5) "Fedor"
// }

```