softwarepunt / instarecord
ActiveRecord Database ORM layer for MySQL
v0.4.1
2024-02-27 09:19 UTC
Requires
- php: >=8.1
- ext-json: *
- ext-pdo: *
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-04-27 09:50:43 UTC
README
✨ A nice PHP ORM for MySQL.
This library is currently used for some internal projects. Extended docs coming soon. Not recommended for production usage yet.
The pitch
🧙♂️ You define your models with typed variables, and Instarecord figures out the rest, like magic.
<?php class User extends Model { public int $id; public string $email; public ?string $name; } $user = new User(); $user->email = "bob@web.net"; $user->save(); echo "Created user #{$user->id}!";