jclavo/profiles

This a package to manage profiles on Ministerio da Cidadania

0.6.0 2022-09-29 13:35 UTC

This package is auto-updated.

Last update: 2024-04-29 04:54:10 UTC


README

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

Installation

You can install the package via composer:

composer require jclavo/profiles

After that, add the package providers on app.php

    'providers' => [
        ...
        /*
        * Package Service Providers...
        */
        Jclavo\Profiles\Providers\ProfilesProvider::class,
        ...
    ]

Usage

use Jclavo\Profiles\Models\Profile;

$profile = new Profile();
$profile->name = 'my new profile';
$profile->description = 'description for my new profile';
$profile->activated = true;
$profile->fixed = false;
$profile->save();

Testing

./vendor/bin/phpunit
./vendor/bin/phpunit tests/Unit/ProfileTest.php

Credits

License

The MIT License (MIT). Please see License File for more information.