jclavo/profiles

这是一个用于管理市民部配置文件的软件包

0.6.0 2022-09-29 13:35 UTC

This package is auto-updated.

Last update: 2024-09-29 06:14:56 UTC


README

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

安装

您可以通过composer安装此包

composer require jclavo/profiles

之后,在app.php中添加包提供者

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

用法

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();

测试

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

致谢

许可协议

MIT许可协议(MIT)。更多信息请参阅许可文件