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.
Download mucan/laravel-magento-api
More information about mucan/laravel-magento-api
Files in mucan/laravel-magento-api
Package laravel-magento-api
Short Description Magento 2 REST API Wrapper to export Magento data to use in your Laravel application.
License MIT
Homepage https://github.com/grayloon/laravel-magento-api
Informations about the package laravel-magento-api
Laravel - Magento API
A Magento 2 API Object Oriented wrapper for a Laravel application.
- Installation
- API Usage
- Available Methods
- Admin Token
- Bundle Products
- Carts
- Categories
- Customer Token
- Customers
- Guest Cart
- Orders
- Product Attributes
- Product Link Types
- Products
- Schema
- Source Items
- Sources
- Stocks
- Custom Modules
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
- Gray Loon Marketing Group
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-magento-api with dependencies
guzzlehttp/guzzle Version ^6.0|^7.0
illuminate/support Version ^7.0|^8.0