uisits/ui
Composer 安装命令:
composer require uisits/ui
包简介
A package to scaffold UI for UIS-ITS laravel applications.
README 文档
README
A package to scaffold UI for ITS laravel applications. Quickly run commands to set up ITS scaffolding on a base laravel application.
Why?
This package helps in separating base laravel application in docker build step. Also included are best practices and refactorings.
Requirements
Note: Remember to update the
middlewarefor API's or web routes if different scheme of authentication is used.
Installation and Usage
- Run
composer require uisits/ui - Run
php artisan its-ui:install
Note:
This command copies all the stubs to your base application.
You are free to update the stubs once they are published. You can also install other required packages as you would previously.
Local Set Up
- Create a fresh laravel application as we do for all projects
- Create a folder
packages ```` at/var/www/laravel/packages``` - Create a folder
uisitswhich is the vendor name for our package in the packages directory at/var/www/laravel/packages/uisits - cd into this vendor name folder (
cd /var/www/laravel/packages/uisits) and rungit clone git@github.com:uisits/ui.git - This copies all the files of the package from github.
- To work on the 7.x run
git checkout 7.x(Here 7.x is the name of the branch on github) - Similarly to work on the 8.x run
git checkout .8x(Here 8.x is the name of the branch on github) - To use this package locally we need to add this package to our laravel app. We can do this by adding the following to out
composer.jsonfile at/var/www/laravel/composer.json."repositories": { "local": { "type": "path", "url": "./packages/uisits/ui" } },
Now your entire composer.json file looks like this:{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "repositories": { "local": { "type": "path", "url": "./packages/uisits/ui" } }, "require": { "adldap2/adldap2-laravel": "^6.0", "fideloper/proxy": "^4.4", "fruitcake/laravel-cors": "^2.0", "laravel/framework": "^7.0", "laravel/passport": "^8.4", "laravel/tinker": "^2.0", "php": "^7.2.5|^8.0", "uabookstores/laravel-shibboleth": "3.1.1", "uisits/ui": "^7.0", "yajra/laravel-oci8": "^7.0" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.3", "facade/ignition": "^2.0", "fzaninotto/faker": "^1.4", "laravel/dusk": "^5.5", "mockery/mockery": "^1.0", "nunomaduro/collision": "^4.1", "phpunit/phpunit": "^8.5" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [ "laravel/dusk" ] } }, "autoload": { "psr-4": { "App\\": "app/" }, "classmap": [ "database/seeds", "database/factories" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } } - All that is now required is to run
composer install uisits/ui. This should now install the package from the local directory.
Note: Sometimes you might need to run
composer dump-autoload.
Testing
- Create a docker container.
- remove the current laravel application at
/var/www/laravelby runningcd .. && rm -rf laravel - Install a fresh Laravel application at
/var/www/by runningcomposer create-project --prefer-dist laravel/laravel:^7.0 laravel - Or For Laravel 8
composer create-project --prefer-dist laravel/laravel blog. - Now Install the package by following the Installation steps for the package.
- Run
composer require uisits/ui - Run
php artisan its-ui:install
- Run
For version requirement please refer the table below:
| Laravel | package-version |
|---|---|
| 7.* | 7.* |
| 8.* | 8.* |
Issues and Feature Requests
- Please create a new issue and mention any bugs or feature requests.
Maintained by UIS ITS.
uisits/ui 适用场景与选型建议
uisits/ui 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 252 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Skeleton」 「its」 「uis」 「uis-its」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 uisits/ui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 uisits/ui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 uisits/ui 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP binding for UIScom (formerly CoMagic) API
Slim starter / Slim skeleton package to boost your development with Slim framework
Base Skeleton for Laravel Application
An awesome skeleton for modern PHP development.
Contao dummy frontend modules.
Upload Blob to repository ITS.
统计信息
- 总下载量: 252
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-02-22