uccello/package-installer

Adds possibility to easily install packages in Uccello projects.

dev-master 2021-01-21 18:03 UTC

This package is auto-updated.

Last update: 2024-04-22 01:48:47 UTC


README

This package allows you to install new composer packages directly from the Uccello interface.

It uses the PHP class ZipArchive and requires the PECL zip extension >= 1.1.0.

Installation

composer require uccello/package-installer

Warning: If you don't want to have problems with git, consider adding the followind lines to .gitignore file located at the root of your Uccello project:

/packages/*
!/packages/.gitkeep

Custom locale packages directory

If you want to use another directory instead of packages, add the following lines to config/uccello.php file:

...
'packages' => [
	'local_directory' => 'packages', // Replace 'packages' by your directory path
],

Don't forget to change the directory's name into .gitignore file too.

Add the form in a page

It is possible to easily add the package upload form in the page of your choice.

Warning: The user must have admin rights on the package-install module to be able to see the form and execute the installation.

You can add the following code in a Blade page:

@include('package-installer::partials.package_upload_form')

Security

If you discover any security related issues, please email jonathan@uccellolabs.com instead of using the issue tracker.

Credits

License

This packcage is under MIT License (MIT).