weareunite/unisys-api
Composer 安装命令:
composer require weareunite/unisys-api
包简介
Unisys basic API skeleton.
README 文档
README
Unisys basic API skeleton developed by Unite.
Requirements
Unisys API skeleton requires:
- PHP 7.1+
- Database that supports
jsonfields such as MySQL 5.7 or higher.
It uses Laravel 5.6, so it has to meet also all its requirements https://laravel.com/docs/5.6/installation#server-requirements.
Installation
New UniSys project
For clean API skeleton based on Laravel 5.6, you can use weareunite/unisys-installer that do all the boring work for you. Let's install it globally:
composer global require "weareunite/unisys-installer"
Now you can create a new Unisys skeleton:
unisys new project_name
This is going to install all dependencies, publish all important vendor configs, migrate, setup some configs and run migrations.
Command is going to generate and print the password for the default administrator account. Do not forget to remember this password
Add Unisys to existing project
Or alternatively, you can use your existing Laravel 5.6 application. Start with requiring these two main packages:
composer require weareunite/unisys-api
To install this package use:
php artisan unisys-api:init-env
and after:
php artisan unisys-api:install
This is going to install all dependencies, publish all important vendor configs, migrate, setup some configs, webpack config and run migrations.
Command is going to generate and print the password for the default administrator account. Save this password to your clipboard, we are going to need it soon.
Requirements
Add your DSN to .env:
SENTRY_LARAVEL_DSN=https://public:secret@sentry.example.com/1
Optimization tools
Medialibrary will use these tools to optimize converted images if they are present on your system:
Here's how to install all the optimizers on Ubuntu:
sudo apt-get install jpegoptim sudo apt-get install optipng sudo apt-get install pngquant sudo npm install -g svgo sudo apt-get install gifsicle
And here's how to install the binaries on MacOS (using Homebrew):
brew install jpegoptim brew install optipng brew install pngquant brew install svgo brew install gifsicle
To create derived images GD should be installed on your server. For the creation of thumbnails of svg's or pdf's you should also install Imagick.
Wkhtmltopdf Installation
Choose one of the following options to install wkhtmltopdf/wkhtmltoimage.
- Download wkhtmltopdf from here;
- Or install as a composer dependency. See wkhtmltopdf binary as composer dependencies for more information.
Testing
- Copy
.env.exampleto.envand fill in your database credentials. - Run
vendor/bin/phpunit.
License
The MIT License (MIT). Please see License File for more information.
weareunite/unisys-api 适用场景与选型建议
weareunite/unisys-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.54k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 06 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「unisys」 「unite」 「weareunite」 「unisys api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 weareunite/unisys-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 weareunite/unisys-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 weareunite/unisys-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
Простейший виджет на основе галереи Unite Gallery
Unisys API module to add expenses to models
Unisys API module to add transactions movements
Unisys API module to add Contacts to models
Unisys API module to add tags and taggable behaviour with custom_properties to Unisys app inspired by https://github.com/spatie/laravel-tags
统计信息
- 总下载量: 2.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-21