Download the PHP package pulunomoe/datamapper without Composer
On this page you can find all versions of the php package pulunomoe/datamapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pulunomoe/datamapper
More information about pulunomoe/datamapper
Files in pulunomoe/datamapper
Download pulunomoe/datamapper
More information about pulunomoe/datamapper
Files in pulunomoe/datamapper
Vendor pulunomoe
Package datamapper
Short Description Super simple data mapper ORM for PHP
License MIT
Homepage https://github.com/pulunomoe/datamapper
Package datamapper
Short Description Super simple data mapper ORM for PHP
License MIT
Homepage https://github.com/pulunomoe/datamapper
Keywords ormdatamapper
Please rate this library. Is it a good library?
Informations about the package datamapper
pulunomoe/datamapper
Super simple data mapper ORM for PHP.
Requirements
- PHP 8+
- PDO
Features
- CRUD (wow!)
- More incoming (soon-ish)
Usage
1. Install with composer
composer require pulunomoe/datamapper
2. Create your entity class
3. Call the DataMapper
API
- Find All
findAll(string $orderBy = '', bool $desc = false, int $limit = 10, int $offset = 0): array
- Find All By
findAllBy(string $column, string $value, string $orderBy = '', bool $desc = false, int $limit = 10, int $offset = 0): array
- Find One
function findOne(int $id): ?EntityClass
- Create
create(EntityClass $object): EntityClass
- Update
update(EntityClass $object): EntityClass
- Delete
function delete(int $id): void
Changelog
- v0.1 : Initial version
- v0.2 : Added ordering, limit, and find all by
Shameless plug
Like this library? Buy me some coffee or buy me some cendol
All versions of datamapper with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
ext-pdo Version *
ext-pdo Version *
The package pulunomoe/datamapper contains the following files
Loading the files please wait ....