conquest/core

Shared utilities for developing the Conquest Laravel ecosystem.

Fund package maintenance!
Jdw5

0.4.3 2024-09-12 01:18 UTC

This package is auto-updated.

Last update: 2024-10-12 01:33:09 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.