2017 © Pedro Peláez
 

library crps

Cold Reader Persistent Storage system

image

imonroe/crps

Cold Reader Persistent Storage system

  • Thursday, June 28, 2018
  • by imonroe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 4 % Grown

The README.md

crps

CRPS is the Coldreader Persistent Storage system. On its own, you may not find it very useful; it doesn't have any front-end information in it at all. For a working, real-world implementation, please install the full Coldreader project., (*1)

CRPS is designed to be a databasing system for when you don't know in advance what kind of information you want to store. It implments a data model where you have a bunch of arbitrary subjects, each of which has an arbitrary number of Aspects., (*2)

Aspects can be thought of as some kind of fact or content that is relevant to its Subject. Aspect data is stored in the database as text, in the broad sense. JSON counts as text, for instance, as do hyperlinks, markup, etc. In addition to storing data, Aspects can be purely functional--a call to an external API, a web scraper to grab a bit of content from elsewhere, and so forth. Each type of Aspect has a display method that produces the markup for use in templates. Additionally, each type of Aspect also has a parse() function which can be called automatically by scheduled jobs. From this function, an Aspect may perform actions on the data model; fetching new data from an external source, updating its own value, or creating/updating other Subjects or Aspects., (*3)

New Aspect Types are easy and quick to build. Upon creation, the new Aspect Type will automatically add new boilerplate code for the necessary GUI forms (via the Laravel Collective Form API) and override methods; an Aspect Type definition is an OOP child class of the parent Aspect Type and inherits its methods. Custom Aspect Types can also be child classes of other custom Aspect Types, so if you build an APIResultsAspect class, you can make a FacebookAPIResultsAspect class that inherits the work you've already done for APIResultsAspect, for instance., (*4)

Dependencies

  • Laravel 5.4+
  • laravelcollective/html 5.4+
  • spatie/laravel-medialibrary 6+
  • league/commonmark 0.16+
  • imonroe/mimeutils 0.1+

Install

Via Composer, (*5)

``` bash $ composer require imonroe/crps, (*6)


## Usage ``` php $subject = new Subject; foreach ($subject->aspects() as $aspect){ $aspect->display_aspect(); }

Change log

Please see CHANGELOG for more information on what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*9)

Security

If you discover any security related issues, please email ian@ianmonroe.com instead of using the issue tracker., (*10)

Credits

  • [Ian Monroe][link-author]
  • [All Contributors][link-contributors]

License

GPL V3. Please see License File for more information., (*11)

The Versions

20/07 2017

1.0.0

1.0.0.0 https://github.com/imonroe/crps

Cold Reader Persistent Storage system

  Sources   Download

GPLv3

The Requires

 

The Development Requires

imonroe crps