Open Source, Self-Hosted, Composer repository for PHP packages
Packistry is a self-hosted Composer repository designed to handle your PHP package distribution. It supports importing from multiple sources like GitHub, GitLab, Gitea and Bitbucket, with seamless updates using webhooks. Packistry allows you to effortlessly run your own composer repository with just a few commands, giving you full control over your packages, access management, and security.
Private Repository Support: Keep your sensitive or proprietary packages secure by hosting them in private repositories.
Token-Based Authentication: Ensure secure access to your repositories with token-based authentication. This allows you to manage permissions for both users and automated systems (machines), providing granular control over who can view or modify your repositories.
Package Source Integration: Easily manage and import Composer packages from various platforms:
Stays up to date automatically, as Packistry uses webhooks to pull the latest changes from your source repositories.
Comprehensive Repository Management:
Packistry combines ease of use, flexibility, and security to give you complete control over your PHP package distribution in a self-hosted environment. Whether you’re managing a private project, a team of developers, or an open-source initiative, Packistry streamlines your workflow with minimal configuration and maximum control.
You can easily run Packistry using Docker.
First, generate an app key:
echo APP_KEY=base64:$(openssl rand -base64 32)
Set the APP_KEY and start the container:
docker run -p 80:80 -e APP_KEY=REPLACE_WITH_VALUE_FROM_STEP_ABOVE -v ./:/data ghcr.io/packistry/packistry:latest
Run the following command to create a user:
docker exec -it $(docker ps | grep ":80->" | awk '{print $1}') packistry add:user
Now, open http://localhost in your browser and log in with the newly created user. Note: Webhooks will not be delivered to localhost.
Packistry is built on a solid foundation of well-maintained dependencies from both the PHP and JavaScript ecosystems, ensuring a high level of performance, security, and developer productivity. Here are some of the key dependencies that power Packistry:
Please review our security policy on how to report security vulnerabilities.
Packistry is open-sourced software licensed under the GPL-3.0.