packagist-mirror
packagist-mirror copied to clipboard
Creates Packagist.org mirror site.
Packagist Mirror
Creates your own packagist.org mirror site.
Requirements
- PHP ^7.1.3
Installation
- Clone the repository
- Install dependencies:
php composer.phar install - Make a VirtualHost with DocumentRoot pointing to
public/ - If you are using like
deployerto deploy the project, make sure that you addbuilddirectory to the shared directory config of your deploy script and runbin/console app:metadata:symlinkafter the deployment is successful. - Change the value of the
$countryNameand$countryCodevariable atpublic/index.phpto make it easier for users to identifyyour mirror site location.
You should now be able to access the site.
Day-to-Day Operation
There is only one command you should run periodically (ideally set up a cron job running every minute):
bin/console app:metadata:dump
License
This project is under the MIT license. See the complete license