Using PHP API Library locally?

Topic summary

A developer wants to use the official Shopify PHP API library (https://github.com/Shopify/shopify-api-php) for local utility scripts to automate shop tasks.

Current situation:

  • Direct API access via CURL works fine
  • The PHP library appears to require OAuth authentication with a callback URL

Key challenge:

  • No easy way to set up a callback URL on a local machine without modifying the local network configuration

Open question:

  • Is there any method to use this library for local use cases that don’t involve a web-accessible callback URL?

The discussion remains open with no resolution provided yet.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hello,

I’m looking to write some utility scripts that I run on my local machine to automate some shop tasks.

I can access the API directly via CURL just fine. But I’m trying to set up the Shopify API library at https://github.com/Shopify/shopify-api-php and it seems it requires OAuth? And that needs a callback URL? There’s no easy way for my local machine to accept a call back URL, not without changing our local network somehow.

Is there any way to use this library for my use case?