Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/indragunawan/packagist-mirror
Creates Packagist.org mirror site.
https://github.com/indragunawan/packagist-mirror
composer mirror-site packagist packagist-mirror php
Last synced: 27 days ago
JSON representation
Creates Packagist.org mirror site.
- Host: GitHub
- URL: https://github.com/indragunawan/packagist-mirror
- Owner: IndraGunawan
- License: mit
- Created: 2018-04-04T13:37:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T06:57:59.000Z (over 5 years ago)
- Last Synced: 2024-11-18T20:50:49.475Z (about 1 month ago)
- Topics: composer, mirror-site, packagist, packagist-mirror, php
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 31
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Packagist Mirror
Creates your own packagist.org mirror site.
## Requirements
- PHP ^7.1.3## Installation
1. Clone the repository
2. Install dependencies: `php composer.phar install`
3. Make a VirtualHost with DocumentRoot pointing to `public/`
4. If you are using like `deployer` to deploy the project, make sure that you add `build` directory to the shared directory config of your deploy script and run `bin/console app:metadata:symlink` after the deployment is successful.
5. Change the value of the `$countryName` and `$countryCode` variable at `public/index.php` to 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](LICENSE)