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