osiset/basic-shopify-api
A lightweight PHP library for Shopify’s REST and GraphQL Admin APIs. Provides a clean client, request/response handling, pagination helpers, rate limit awareness, and easy authentication setup. Ideal for building Shopify apps or integrating stores in any PHP project.
Pros:
iterable return type (v10.0.6) aligns with Laravel 9/10’s PHP version requirements, reducing dependency conflicts.Cons:
429 Too Many Requests).iterable return type fix (#129) may expose type errors in custom code using older PHP versions (though Laravel 9+ mitigates this).Illuminate\Http\Client\ConnectionException).iterable return type change (#129) break existing Laravel code using the package’s iterators?spatie/laravel-shopify widened? (e.g., does Spatie now support 2023 API features?)iterable return types.iterable return types.admin/api/2023-10/graphql.json) to validate the #128 fix.iterable return type in a Laravel controller/service.spatie/laravel-shopify.return new ArrayIterator($results); (or similar) in custom code using the package’s iterators.admin-api access).$this->app->bind(ShopifyClient::class, function ($app) {
return new ShopifyClient(
config('shopify.api_key'),
config('shopify.api_secret'),
config('shopify.shop_name')
);
});
phpunit.xml to use PHP 8.1 and test the package’s iterators.productList with admin-api access) and verify the #128 fix.iterable return type issues to non-PHPHow can I help you explore Laravel packages today?