Satis Private Repo Limit Version of Extension By Customer

Hi,
Does anyone have any code they can share or method for how you limit customers to a certain version of an extension? The idea is after their updates subscription runs out, it automatically stops giving them access to the latest version.

Right now I’m just using a static https://github.com/composer/satis satis repo that gets updated from github, and the location of the repo is protected with HTTP Basic Authentication (htaccess), but I have no way of excluding versions by customer.

I am aware there is this https://packagist.com/docs/setup-vendor but it gets pricey very fast.

Just to be clear the use case is like Customer A has access up to version 1.1.0, Customer B access up to version 1.2.0 and I want to avoid creating a separate repo for each customer.

submitted by /u/kjavitz
[link] [comments]