Download the PHP package bayuly94/laravel-admin-ext-cropper without Composer

On this page you can find all versions of the php package bayuly94/laravel-admin-ext-cropper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-admin-ext-cropper

cropper extension for laravel-admin

这是一个laravel-admin扩展,用来将cropper集成进laravel-admin的表单中

截图

安装

然后

配置

config/admin.php文件的extensions,加上属于这个扩展的一些配置

使用

在form表单中使用它:

默认模式是自由剪裁模式,如果需要强制剪裁尺寸,请使用(注意该尺寸就是最后得到的图片尺寸 非“比例”)

PS (特性预读)

1、图片并不是预上传的,而是前端转base64之后填入input,服务端再转回图片保存的

2、图片格式是默认原格式保存的。就是说,如果原图是透明底色的png图片,保存之后仍旧是透明底色的png图片,并不会损失(前端logo神器)

3、该扩展是可多次调用的。在同一个表单内能调动多次,不会相互干扰。

4、扩展继承了laravel-admin 的ImageField类 和File类。 所以你不必去纠结图片的修改 和删除问题。他们都是自动操作的。 当然,因为继承了ImageField类,所以也能使用 “intervention/image” 的各种(crop,fit,insert)方法 (前提是你已经composer require intervention/image)

License

Licensed under The MIT License (MIT).


All versions of laravel-admin-ext-cropper with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
encore/laravel-admin Version ~1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bayuly94/laravel-admin-ext-cropper contains the following files

Loading the files please wait ....