Missing documentation on offline vs online sessions for the PHP app

I’m trying to figure out how to deal with this setup and can’t find any conclusive answers.

I’m using the skeleton app and I’m migrating to a different framework as the php skeleton app is heavily outdated. This app seems to make all sessions offline by default. Maybe I’m not understanding it correctly, but this seems odd because they are meant for background tasks and the likes according to the documentation.

In my version I made all those tokens be online sessions, but then I run into the issue where I can’t find any documentation on how to generate an offline session. How should I set this up? Why is the php app seemingly doing it wrong?

PS. Please start maintaining your php github repositories or mark them as archived.

Hi Linaori,

You’re correct in that this PHP skeleton app is outdated - I have forwarded this feedback to the team that owns this. I’d recommend using the CLI which will make the Auth process much easier. There’s a tutorial here that will help you:

How To Create Laravel Shopify Apps using Shopify CLI (Tutorial)

I’m not interested in how to set this up (especially not through a youtube video), I need an answer for how offline vs online sessions are supposed to be used.

Here’s the doc for online access tokens:

And here’s the doc for offline access tokens:

Yes I know about those, they explain nothing useful in terms of the php shopify-api package.

I’ve been looking around to see why the PHP App Template hasn’t been updated in 5+ months, and this change to the CLI tool indicates that its unlikely that the PHP App Template will be maintained or updated in the future.