Download the PHP package mucan/laravel-magento-api without Composer

On this page you can find all versions of the php package mucan/laravel-magento-api. 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-magento-api

Build Status Latest Stable Version Style CI Total Downloads License

Laravel - Magento API

A Magento 2 API Object Oriented wrapper for a Laravel application.

Installation

Install this package via Composer:

Publish the config options:

Configure your Magento 2 API endpoint and token in your .env file:

API Usage

Example:

Will throw an exception on >500 errors.

Available Methods:

Admin Token Integration (IntegrationAdminTokenServiceV1)

/V1/integration/admin/token

Generate a admin token:

Bundle Product Options (bundleProductOptionRepositoryV1)

/V1/bundle-products/{sku}/options/all

Get all options for bundle product.

Carts

/V1/carts/mine

Returns information for the cart for the authenticated customer. Must use a single store code.

/V1/carts/mine/coupons/{couponCode}

Apply a coupon to a specified cart.

Cart Items (quoteCartItemRepositoryV1)

/V1/carts/mine/items/

Lists items that are assigned to a specified customer cart. Must have a store code.

/V1/carts/mine/items/

Add/update the specified cart item with a customer token. Must have a store code.

put - /V1/carts/mine/items/{itemId}

Update the specified cart item with a customer token. Must have a store code.

Remove the specified cart item with a customer token. Must have a store code.

Cart Totals (quoteCartTotalRepositoryV1)

/V1/carts/mine/totals

Returns information for the cart totals for the authenticated customer. Must use a single store code.

Categories (catalogCategoryManagementV1)

/V1/categories

Get a list of all categories:

Customer Token Integration (IntegrationCustomerTokenServiceV1)

/V1/integration/customer/token

Generate a customer token:

Customers (various)

/V1/customers/search

Get a list of customers:

/V1/customers/password

Send an email to the customer with a password reset link.

/V1/customers/resetPassword

Reset customer password.

Guest Cart (various)

/V1/guest-carts

Enable customer or guest user to create an empty cart and quote for an anonymous customer.

/V1/guest-carts/{cartId}

Return information for a specified cart.

/V1/guest-carts/{cartId}/items

List items that are assigned to a specified cart.

/V1/guest-carts/{cartId}/items

Add/update the specified cart item.

put - /V1/guest-carts/{cartId}/items/{itemId}

Update the specified cart item.

Remove the specified cart item.

/V1/guest-carts/{cartId}/estimate-shipping-methods

Estimate shipping by address and return list of available shipping methods.

/V1/guest-carts/{cartId}/coupons/{couponCode}

Apply a coupon to a specified cart.

Orders (salesOrderRepositoryV1)

Lists orders that match specified search criteria.

/V1/orders

/V1/orders/{id}

List a specified order:

Product Attributes (catalogProductAttributeRepositoryV1)

/V1/products/attributes/{attributeCode}

Retrieve specific product attribute information:

Product Link Types (catalogProductLinkTypeListV1)

/V1/products/links/types

Retrieve information about available product link types:

Products (catalogProductRepositoryV1)

/V1/products

Get a list of products:

/V1/products/{sku}

Get info about a product by the product SKU:

Custom Modules

Magento modules can have their own API endpoints. For example:

To use these you can directly use get/post methods:

Schema

Get a schema blueprint of the Magento 2 REST API:

Source Items (inventoryApiSourceItemRepositoryV1)

/V1/inventory/source-items

Get a list of paginated sort items (typically used for quantity retrieval):

Sources (inventoryApiSourcesRepositoryV1)

/V1/inventory/sources

Get a list of paginated sources.

/V1/inventory/sources/{$name}

Get a specified source.

Stocks (inventoryApiStocksRepositoryV1)

/V1/inventory/stocks

Get a list of paginated stocks.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of laravel-magento-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
guzzlehttp/guzzle Version ^6.0|^7.0
illuminate/support Version ^7.0|^8.0
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 mucan/laravel-magento-api contains the following files

Loading the files please wait ....