charcoal / core
Charcoal Web Framework
v5.0.0
2024-03-13 15:05 UTC
Requires
- php: ^7.4 || ^8.0
- ext-mbstring: *
- ext-pdo: *
- charcoal/cache: ^5.0
- charcoal/config: ^5.0
- charcoal/factory: ^5.0
- charcoal/property: ^5.0
- charcoal/view: ^5.0
- pimple/pimple: ^3.0
- psr/cache: ^1.0
- psr/log: ^1.0
Requires (Dev)
- cache/void-adapter: ^1.0
- charcoal/app: ^5.0
- mockery/mockery: ^1.0
- php-coveralls/php-coveralls: ^2.2
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
- tedivm/stash: ~0.16
Replaces
- dev-main / 5.x-dev
- v5.0.0
- v4.1.0
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.2
- v4.0.1
- v4.0.0
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.2
- 0.6.4
- 0.6.3
- 0.6.2.1
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4.1
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7.1
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2
- 0.1
- dev-michel/advanced-search
- dev-feature/between-filter
- dev-feature/has-active-filters
- dev-joel/feat/query
- dev-mcaskill-patch-table-structure
- dev-feature/camelizePropertiesAndUseArrayAccess
- dev-mcaskill-callable-resolver
This package is auto-updated.
Last update: 2024-10-13 16:24:49 UTC
README
The Core package provides abstract objects and tools for defining object data models and managing datasource connections.
Installation
composer require charcoal/core
For Charcoal projects, the service provider can be registered from your configuration file:
{ "service_providers": { "charcoal/model/service-provider/model": {} } }
Overview
Loader
TODO
Model
TODO
Source
Source
provides storage support to Charcoal models.
Using a Source
object directly:
$model = ModelFactory::instance()->create('namespace/model'); $source = SourceFactory::instance()->create('database'); $source->load_item(1, $model);
Using a Storable
object, which abstract away the Source
completely.
// Model implements StorableInterface with StorableTrait $model = ModelFactory::instance()->create('namespace/model'); // This will load the Model's source from it's metadata $model->load(1);
Available Source
Currently, only the database
source is supported.
Database Source
The DatabaseSource
source type is currently the only supported storage source.
TODOs
- Implements a
FileSource
, at least a basic CSV support. - Move
CollectionLoader
to here, somehow.
Validator
The validator namespace is obsolete and should not be used. Its usage is currently being removed from everywhere in charcoal.