Getting Started
This content is for v1.0. Switch to the latest version for up-to-date documentation.
Install Articulate, configure database access, and wire the two services used by the rest of the examples.
Installation
Section titled “Installation”composer require articulate-orm/coreConfiguration
Section titled “Configuration”Configure database access through environment variables:
DATABASE_DSN=mysql:host=mysql;dbname=articulate_test;charset=utf8mb4DATABASE_USER=userDATABASE_PASSWORD=userpasswordServices
Section titled “Services”Register the core Articulate services in your container:
Articulate\Connectionreceives the DSN, username, and password.Articulate\Modules\EntityManager\EntityManagerreceives theConnection.
Most examples use EntityManager directly to persist, find, query, remove, and flush entities.
First run
Section titled “First run”- Start your database services (Docker Compose or otherwise).
- Initialize the migration tracking table.
- Apply pending migrations.
- Run your first command against real data.
docker compose up -ddocker compose exec php bin/console articulate:initdocker compose exec php bin/console articulate:migratedocker compose exec php bin/console app:catalog:crudNext steps
Section titled “Next steps”Continue to Entity Mapping to map your first PHP classes to database tables, or read Context-Bounded Entities to understand what makes Articulate different.