定制 robertogallea/laravel-ui-faces 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

robertogallea/laravel-ui-faces

Composer 安装命令:

composer require robertogallea/laravel-ui-faces

包简介

Laravel package wrapping UI Faces API

README 文档

README

Laravel-ui-faces is a simple package for wrapping UI Faces API. It provides a fluent API for building request to UI Faces REST service and parse response.

1. Installation

For installing the package run the command

composer require robertogallea/laravel-ui-faces

2. Setup

The packages need a valid API key to be set in the UI_FACES_API_KEY variable inside your .env file. Optionally, you can change the default API URL by setting the UI_FACES_API_URL variable

It registers the UIFacesServiceProvider using laravel autodiscovery, in addition, if you want to use UIFaces Facade, you need to register the following alias inside app.php

'aliases' => [
...
    'UIFaces' => robertogallea\UIFaces\Facades\UIFaces::class
]

3. Usage

UI Faces can be used in several ways:

  • Using Facade:
import UIFaces;
...
UIFaces::limit(10)
    ->from_age(18)
    ->to_age(22)
    ->getFaces();
  • Using IoC:
public function show(UIFaces $uifaces)
{
    $faces = $uifaces
        ->limit(10)
        ->from_age(18)
        ->to_age(22)
        ->getFaces();    
}
  • Using Laravel Service Container:
import robertogallea\UIFaces\UIFaces;

...

    $faces = app(UIFaces::class)
        ->limit(10)
        ->from_age(18)
        ->to_age(22)
        ->getFaces();

UIFaces supports the following parameters:

  • limit
  • offset
  • random
  • from_age
  • to_age

and the following parameter arrays;

  • gender
  • hairColor
  • emotion

4. Issues, Questions and Pull Requests

You can report issues and ask questions in the issues section. Please start your issue with ISSUE: and your question with QUESTION:

If you have a question, check the closed issues first.

To submit a Pull Request, please fork this repository, create a new branch and commit your new/updated code in there. Then open a Pull Request from your new branch. Refer to this guide for more info.

robertogallea/laravel-ui-faces 适用场景与选型建议

robertogallea/laravel-ui-faces 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 08 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 robertogallea/laravel-ui-faces 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 robertogallea/laravel-ui-faces 我们能提供哪些服务?
定制开发 / 二次开发

基于 robertogallea/laravel-ui-faces 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-20