Download the PHP package sharpapi/laravel-ecommerce-product-categories without Composer

On this page you can find all versions of the php package sharpapi/laravel-ecommerce-product-categories. 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-ecommerce-product-categories

SharpAPI GitHub cover

AI Product Categories Generator for Laravel

🚀 Leverage AI API to generate product categories for E-commerce applications.

Latest Version on Packagist Total Downloads

Check the details at SharpAPI's E-commerce API page.


Requirements


Installation

Follow these steps to install and set up the SharpAPI Laravel Product Categories Generator package.

  1. Install the package via composer:

  2. Register at SharpAPI.com to obtain your API key.

  3. Set the API key in your .env file:

  4. [OPTIONAL] Publish the configuration file:

Key Features


Usage

You can inject the EcommerceProductCategoriesService class to access product categories generation functionality. For best results, especially with batch processing, use Laravel's queuing system to optimize job dispatch and result polling.

Basic Workflow

  1. Dispatch Job: Send a product name to the API using productCategories, which returns a status URL.
  2. Poll for Results: Use fetchResults($statusUrl) to poll until the job completes or fails.
  3. Process Result: After completion, retrieve the results from the SharpApiJob object returned.

Note: Each job typically takes a few seconds to complete. Once completed successfully, the status will update to success, and you can process the results as JSON, array, or object format.


Controller Example

Here is an example of how to use EcommerceProductCategoriesService within a Laravel controller:

Handling Guzzle Exceptions

All requests are managed by Guzzle, so it's helpful to be familiar with Guzzle Exceptions.

Example:


Optional Configuration

You can customize the configuration by setting the following environment variables in your .env file:


Product Categories Data Format Example


AI agents (Laravel Boost)

This package ships a Laravel Boost skill, sharpapi-ecommerce-product-categories, that teaches AI coding agents how to call EcommerceProductCategoriesService correctly: submit, then fetchResults() in a queued job, check the job status, and read the result. It loads on demand and adds no always-on guideline. Boost 2 or newer is required.

In the host app:

Select sharpapi/laravel-ecommerce-product-categories when Boost lists the packages it found.


Support & Feedback

For issues or suggestions, please:


Changelog

Please see CHANGELOG for a detailed list of changes.


Credits


License

The MIT License (MIT). Please see License File for more information.


Follow Us

Stay updated with news, tutorials, and case studies:


All versions of laravel-ecommerce-product-categories with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
laravel/framework Version ^10.48.29|^11.0|^12.0|^13.0
sharpapi/php-core Version ^1.4.1
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 sharpapi/laravel-ecommerce-product-categories contains the following files

Loading the files please wait ...