PHP code example of red-jasmine / user-core
1. Go to this page and download the library: Download red-jasmine/user-core library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
red-jasmine / user-core example snippets
use RedJasmine\UserCommon\Application\Services\UserCommonApplicationService;
$service = app(UserCommonApplicationService::class);
// 获取用户资料
$profile = $service->getProfile($query);
// 更新用户资料
$profile = $service->updateProfile($command);
// 获取资料完整度
$completion = $service->getProfileCompletion($query);
bash
php artisan vendor:publish --tag=user-common-config
bash
php artisan migrate
bash
php artisan vendor:publish --tag=user-common-views
bash
composer analyse