echron / packagist-uac
Set up a private packagist with user access control
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/echron/packagist-uac
Requires
- composer/satis: ^1.0.0
This package is auto-updated.
Last update: 2025-10-14 04:16:51 UTC
README
Private Packagist with multi user access
In the pub folder we generate a folder structure with htaccess restrictions., the routing of an authenticated user happens based on the username of that user
#Installation
- Make sure your server has htaccess support
- Add packages to satis.packages.json
- Configure the composer access to your private repository (preferably with a SSH key)
- Configure the desired endpoint(s) in gererate.php
- Make sure your web server serves the pub folder
- Run generate.php
#Endpoints You can have one or more endpoints. For each endpoint you can define access to all or a selection of the packages defined in your configuration file You can also define a saparate satis.json for each endpoint You can add a public (no authentication required) endpoint when you add an endpoint with the name "public"
#Multiple users Allow users to have access to endpoints,
#TODO:
- Since we base our routing on the username the username should be unique across the environment.
- Add tests
- Make this installable as a composer project
- Test integration with other Satis plugins