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
- Host: GitHub
- URL: https://github.com/fgh151/php-a2o-extension
- Owner: fgh151
- Created: 2020-01-16T11:57:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T03:20:56.000Z (almost 3 years ago)
- Last Synced: 2025-07-28T10:47:59.087Z (11 months ago)
- Topics: extension, php, zephir
- Language: Shell
- Size: 33.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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"
// }
```