【文件属性】:
文件名称:remove-bg:使用remove.bg api以编程方式从图像中删除背景
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-01 17:21:29
api php laravel png background
使用remove.bg api以编程方式从图像中删除背景。
安装
通过composer安装:
composer require mtownsend/remove-bg
该软件包旨在与任何PHP 7.0+应用程序一起使用,但对Laravel具有特殊的支持。
注册服务提供商(Laravel用户)
对于Laravel 5.4及更低版本,将以下行添加到您的config/app.php :
/*
* Package Service Providers...
*/
Mtownsend \ RemoveBg \ Providers \ RemoveBgServiceProvider ::class,
对于Laravel 5.5及更高版本,该软件包将为您自动注册提供程序。
使用流明
要注册服务提供商,请将以下行添加到app/bootstrap/app.php :
$ app -> regis
【文件预览】:
remove-bg-master
----.gitignore(30B)
----src()
--------Providers()
--------RemoveBg.php(11KB)
--------config()
--------Facades()
--------helpers.php(468B)
----LICENSE.md(1KB)
----composer.json(1KB)
----README.md(6KB)
----phpunit.xml(670B)
----tests()
--------RemoveBgTest.php(87B)