conquest / core
Shared utilities for developing the Conquest Laravel ecosystem.
Fund package maintenance!
Jdw5
Requires
- php: ^8.1
- illuminate/support: ^10.0||^11.0
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
README
Conquest Core is a package from shareable traits and the Primitive object used across all Conquest packages.
Installation
You can install the package via composer:
composer require conquest/core
Usage
Extend a class using the Primitive
object to then use the traits provided to add functionality to your classes simply. The Primitive
object is designed for serialization to be sent over wire.
use Conquest\Core\Primitive; class MyClass extends Primitive { use ...; public class toArray(): array { return []; } }
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.