Skip to content

php-enspired/storable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Be a Storage Hero

$entity->saveYourself() // zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $storage->i’llSaveYou($entity) // hero!

Storable provides a design and groundwork that you can build from while keeping the Database (or whatever storage) away from your domain logic.

dependencies

Requires php 7.4, php 8.0, or later.

ICU support requires the intl extension.

installation

Recommended installation method is via Composer: simply composer require php-enspired/storable.

a quick taste

<?php

$parties = $storage->get(Party::class)
  ->find()
  ->upcoming()
  ->scheduledThisWeek()
  ->noInvitationRequired()
  ->withCake()
  ->list();

foreach ($parties as $party) {
  $party->on();
}

see more in the wiki.

docs

coming soon

contributing or getting help

I'm on Freenode at #php-enspired, or open an issue on github. Feedback is welcomed as well.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages