atlas-php / core
Core utilities for Atlas PHP Laravel packages.
Installs: 153
Dependents: 4
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/atlas-php/core
Requires
- php: ^8.2
- illuminate/support: ^10.0|^11.0|^12.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.13
- orchestra/testbench: ^8.13 || ^9.0
- phpunit/phpunit: ^10.5
README
Atlas Core provides the shared foundation for all Atlas PHP packages — testing harnesses, configuration helpers, and publishing conventions. It standardizes behaviors so each package can stay small, predictable, and focused on its domain.
Table of Contents
Overview
Atlas Core centralizes package infrastructure: consistent testing, configurable models, publish pipelines, and provider conventions. Every Atlas package builds on this shared layer.
Installation
composer require atlas-php/core
Key Components
Testing Harness
PackageTestCase standardizes Testbench usage, migration setup, sqlite defaults, and artisan helpers.
Configurable Models
AtlasModel + TableResolver allow all packages to override tables and connections via config.
Model Services
Atlas\Core\Services\ModelService offers shared CRUD helpers for Eloquent-backed services while allowing packages to extend/override query behavior. See Shared Model Service.
Publishing & Providers
PackageServiceProvider and TagBuilder give every package consistent config/migration publishing and install reminders.
Quality Assurance
| Command | Purpose |
|---|---|
composer lint |
Format code with Laravel Pint. |
composer analyse |
Run Larastan static analysis. |
composer test |
Execute PHPUnit test suite. |
Also See
Contributing
See the Contributing Guide.
License
MIT — see LICENSE.