{"id":17949362,"url":"https://github.com/gnikyt/basic-shopify-resource","last_synced_at":"2026-04-17T08:30:59.064Z","repository":{"id":138017609,"uuid":"153016975","full_name":"gnikyt/Basic-Shopify-Resource","owner":"gnikyt","description":"A basic resource wrapper for Basic-Shopify-API","archived":false,"fork":false,"pushed_at":"2018-10-22T03:04:11.000Z","size":111,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-06T19:44:03.541Z","etag":null,"topics":["helper","library","resources","shopify","shopify-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnikyt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-14T20:40:51.000Z","updated_at":"2018-11-01T15:40:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"668f2917-a491-4094-adbb-4ab16b569bb7","html_url":"https://github.com/gnikyt/Basic-Shopify-Resource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnikyt/Basic-Shopify-Resource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnikyt%2FBasic-Shopify-Resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnikyt%2FBasic-Shopify-Resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnikyt%2FBasic-Shopify-Resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnikyt%2FBasic-Shopify-Resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnikyt","download_url":"https://codeload.github.com/gnikyt/Basic-Shopify-Resource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnikyt%2FBasic-Shopify-Resource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helper","library","resources","shopify","shopify-api"],"created_at":"2024-10-29T09:16:23.566Z","updated_at":"2026-04-17T08:30:59.044Z","avatar_url":"https://github.com/gnikyt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Shopify Resource\n\n[![Build Status](https://travis-ci.org/ohmybrew/Basic-Shopify-Resource.svg?branch=master)](http://travis-ci.org/ohmybrew/Basic-Shopify-Resource)\n[![Coverage Status](https://coveralls.io/repos/github/ohmybrew/Basic-Shopify-Resource/badge.svg?branch=master)](https://coveralls.io/github/ohmybrew/Basic-Shopify-Resource?branch=master)\n[![StyleCI](https://styleci.io/repos/153016975/shield?branch=master)](https://styleci.io/repos/153016975)\n[![License](https://poser.pugx.org/ohmybrew/basic-shopify-resource/license)](https://packagist.org/packages/ohmybrew/basic-shopify-resource)\n\nThis library is a simple wrapper for the Basic Shopify API to interact with the Shopify resources in a more friendly manner.\n\n**Currently in the works, many models are missing**.\n\n## Examples\n\n```php\n# Setting up a static connection\nConnection::set(\n    true, // false for public API\n    'example-shop.myshopify.com',\n    ['key' =\u003e '9798928b7bac29a732e3c1f3646732df2', 'password' =\u003e 'dd69e76588e9008b0b8ae1dd7a7b7b59']\n);\n```\n\n```php\n$product = Product::find(1624265326631);\necho \"Product: {$product-\u003etitle}\";\n$product-\u003etitle = 'New Title';\n$product-\u003esave();\n\necho $product-\u003evariants-\u003efirst()-\u003eid;\nprint_r($pproduct-\u003evariants-\u003efirst()-\u003eimage-\u003esrc); // Gets the variant image (lazy loaded)\nprint_r($product-\u003evariants-\u003efirst()-\u003eproduct); // Gets product for variant (lazy loaded)\nprint_r($product-\u003ecollections-\u003efirst()-\u003ecollects); // Gets collects for the collection (lazy loaded)\n\n$count = Product::all()-\u003ecount();\necho \"There are {$count} products\";\n\n$variant = ProductVariant::findThrough(12999209309, $product);\necho $variant-\u003eid;\n\n$collection = CustomCollection::find(29889201111);\necho $collection-\u003ehandle;\n\n$collect = Collect::all(['collection_id' =\u003e $collection-\u003eid]);\n$products = $collect-\u003emap(function ($c) { return $c-\u003eproduct; });\n```\n\n## Status\n\n14.00% completed\n\n- [x] ProductImage\n- [x] ProductVariant\n- [x] CustomCollection\n- [x] Collect\n- [x] Product\n- [x] Shop\n- [x] Asset\n- [x] Theme\n- [ ] AccessScope\n- [ ] StorefrontAccessToken\n- [ ] Policy\n- [ ] ShippingZone\n- [ ] Province\n- [ ] Country\n- [ ] AbandonedCheckout\n- [ ] DraftOrder\n- [ ] Order\n- [ ] OrderRisk\n- [ ] Refund\n- [ ] Transaction\n- [ ] Payouts\n- [ ] Balance\n- [ ] Transactions\n- [ ] SmartCollection\n- [ ] Webhook\n- [ ] Event\n- [ ] CustomerAddress\n- [ ] Customer\n- [ ] CustomerSavedSearch\n- [ ] User\n- [ ] Multipass\n- [ ] GiftCard\n- [ ] ShopifyQL\n- [ ] Report\n- [ ] PriceRule\n- [ ] DiscountCode\n- [ ] Checkout\n- [ ] ResourceFeedback\n- [ ] ProductListing\n- [ ] CollectionListing\n- [ ] Payment\n- [ ] InventoryItem\n- [ ] Location\n- [ ] InventoryLevel\n- [ ] CarrierService\n- [ ] FulfillmentEvent\n- [ ] Fulfillment\n- [ ] FulfillmentService\n- [ ] Page\n- [ ] Comment\n- [ ] Blog\n- [ ] Redirect\n- [ ] ScriptTag\n- [ ] BlogArticle\n- [ ] UsageCharge\n- [ ] ApplicationCredit\n- [ ] ApplicationCharge\n- [ ] RecurringApplicationCharge\n\n## Testing\n\nRun `bin/phpunit --no-coverage` for tests.\n\nRun `bin/phpunit` for full coverage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnikyt%2Fbasic-shopify-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnikyt%2Fbasic-shopify-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnikyt%2Fbasic-shopify-resource/lists"}