Repman is a PHP repository manager. Main features:
- free and open source
- works as a proxy for packagist.org (speeds up your local builds)
- hosts your private packages
- allows to create individual access tokens
- supports private package import from GitHub, GitLab and Bitbucket with one click
- REST API
- security scanner (with e-mail reports)
Documentation: https://repman.io/docs/
- PHP >= 7.4
- PostgreSQL 11
var
dir must be writeable- any web server
https://repman.io/docs/standalone/#docker-installation
https://repman.io/docs/standalone/#ansible-playbooks-installation
git clone [email protected]:repman-io/repman.git
cd repman
composer install
Setup database:
bin/console doctrine:migrations:migrate #for postgres
bin/console doctrine:schema:create #for sqlite init as migrations are only postgres-compatible
bin/console messenger:setup-transports
To configure mailer transport, enter connection details in the MAILER_DSN
environment variable
MAILER_DSN=smtp:https://user:[email protected]
Read more: transport setup
In addition, setup also MAILER_SENDER
environment variable
To process messages asynchronously you must run worker:
bin/console messenger:consume async
Read more: deploying to production
Navigate your browser to instance address, you will see home page with usage instructions.
On dev env you may want to enable proxy to allow to create subdomains and tests composer organizations:
composer proxy-setup
This will create repman.wip
domain. Then you can add other domains with:
symfony proxy:domain:attach your-organization.repman
bin/console repman:metadata:clear-cache
- clear packages metadata cache (json files)bin/console repman:create:admin <email> [<password>]
- create a new user with admin privilegesbin/console repman:create:user <email> [<password>]
- create a new (normal) userbin/console repman:proxy:sync-releases
- sync proxy releases with packagist.orgbin/console repman:security:scan-all
- scan all synchronized packagesbin/console repman:security:update-db
- update security advisories database, scan all packages if updatedbin/console repman:package:synchronize <packageId>
- synchronize given packagebin/console repman:package:clear-old-dists
- clear old private dev distributions files
Callbacks:
/auth/{provider}/check
/register/{provider}/check
/user/token/{provider}/check
Scopes:
- registration:
user:email
- repositories:
read:org
,repo
Scopes:
- registration:
read_user
- repositories:
api
Scopes:
- registration:
email
- repositories:
repository
,webhook
To integrate with self-hosted GitLab, enter the instance url in the APP_GITLAB_API_URL
environment variable
APP_GITLAB_API_URL='https://gitlab.organization.lan'
- Override with
docker-compose.override.yml
if needed. - Set your domain (
APP_HOST
) in.env.docker
.
If you wish to use your own certificate put key and certificate in:
docker/nginx/ssl/private/server.key
docker/nginx/ssl/certs/server.crt
Otherwise self-sign certificate will be generated.
To start all containers run:
docker-compose up
In case of any problems, you can use:
- Our documentation: repman.io/docs - it is also open sourced github.com/repman-io/repman-docs-pages
- GitHub issue list: github.com/repman-io/repman/issues - feel free to create a new issue there
- E-mail: contact [at] repman.io
The Repman project is licensed under the terms of the MIT.
However, Repman includes several third-party Open-Source libraries, which are licensed under their own respective Open-Source licenses.
- Tabler: MIT
- Feather: MIT
- Lucide: License: ISC
- Postmark Transactional Email Templates: MIT
- Libraries dynamically referenced via Composer: run
composer license
to get the latest licensing info about all dependencies.
made with ❤️ by Buddy