weareunite / unisys-api
Unisys basic API skeleton.
Installs: 2 537
Dependents: 4
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.2
- aws/aws-sdk-php: ~3.0
- barryvdh/laravel-snappy: ^0.4.7
- illuminate/contracts: ^7.0
- illuminate/support: ^7.0
- laravel/passport: ^8.0
- league/flysystem-aws-s3-v3: ^1.0
- lorisleiva/laravel-deployer: ^0.3
- maatwebsite/excel: ^3.1
- mll-lab/laravel-graphql-playground: ^2.1
- myclabs/php-enum: ^1.7
- predis/predis: ^1.1
- rebing/graphql-laravel: ^5.0
- sentry/sentry-laravel: ^1.8
- spatie/data-transfer-object: ^1.13
- spatie/eloquent-sortable: ^3.8
- spatie/laravel-activitylog: ^3.11
- spatie/laravel-backup: ^6.8
- spatie/laravel-medialibrary: ^8.0.0
- spatie/laravel-model-status: ^1.10
- spatie/laravel-permission: ^3.11
- webpatser/laravel-countries: ^1.5.4
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.6
- doctrine/dbal: ^2.7
- fzaninotto/faker: ~1.4
- lanin/laravel-api-debugger: ^3.5
- mockery/mockery: 1.3.*
- orchestra/testbench: 5.0.*
- phpunit/phpunit: ^8.5
- dev-master
- 0.7.0-rc79
- 0.7.0-rc78
- 0.7.0-rc77
- 0.7.0-rc76
- 0.4.10
- 0.4.3
- 0.4.2
- 0.4.1
- 0.3.79
- 0.3.77
- 0.3.75
- 0.3.72
- 0.2.17
- 0.2.12
- 0.1.85
- dev-upgrade-L7
- dev-develop
- dev-remove-transactions
- dev-hotfix/repair-settings
- dev-feature/remove-instances
- dev-feature/remove-old-cache-handling
- dev-hotfix/remove-backup-run
- dev-feature/pdf-service
- dev-hotfix/contact-type
- dev-feature/instances
- dev-restful-way
- dev-hotfix/sync-permissions
- dev-feature/update
- dev-implement-graphql
This package is auto-updated.
Last update: 2025-02-23 10:03:33 UTC
README
Unisys basic API skeleton developed by Unite.
Requirements
Unisys API skeleton requires:
- PHP 7.1+
- Database that supports
json
fields 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.example
to.env
and fill in your database credentials. - Run
vendor/bin/phpunit
.
License
The MIT License (MIT). Please see License File for more information.