{"repo":"mtownsend5512/remove-bg","free":true,"listed":false,"github":"https://github.com/mtownsend5512/remove-bg","clone":"git clone https://github.com/mtownsend5512/remove-bg.git","description":"Programmatically remove backgrounds from your images using the remove.bg api","language":"PHP","stars":184,"topics":["remove","bg","background","php","laravel","transparent","png","api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Programmatically remove backgrounds from your images using the remove.bg api. Register an account and obtain your api key Remove.bg Developer Documentation Installation Install via composer: This package is designed to work with any PHP 7.0+ application but has special support for Laravel. Registering the service provider (Laravel users) For Laravel 5.4 and lower, add the following line to your config/app.php : For Laravel 5.5 and greater, the package will auto register the provider for you. Using Lumen To register the service provider, add the following line to app/bootstrap/app.php : Publishing the config file (Laravel users) Once your removebg.php has been published your to your config folder, add the api key you obtained from Remove.bg. If you are using Laravel and put your remove.bg api key in the config file, Laravel will automatically set your api key every time you instantiate the class through the helper or facade. Quick start Using the class Advanced usage Remove.bg offers several request body parameters for each api call. For an up to date list, you should always check the remove.bg api documentation. Here is an example of an api call configured with specific request body parameters. You may also directly specify request header parameters. As of right now this does not appear to offer much functionality in terms of how the Remove.bg api will consume these headers, but we thought it was important to expose this functionality. Consider the following example: Account ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mtownsend5512","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mtownsend5512/remove-bg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}