News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Setting Up a Local Mirror for Composer Packages With Satis
January 28, 2014 @ 12:27:08

Anyone who has worked with Composer for PHP package management knows that it's been one of the biggest changes in the PHP ecosystem in recent years. Unfortunately, it does have one major potential downfall - it's reliance on GitHub. While GitHub usually does a good job of staying stable, even they falter from time to time. Thankfully there's a locally hosted alternative you can use - Satis. In this new post to NetTuts.com, they show you how to use this tool and mirror packages for your own use.

In this tutorial we will set up a local mirror to proxy all your packages required in your project's composer.json file. This will make our CI work much faster, install the packages over the local network or even hosted on the same machine, and make sure we have the specific versions of the packages always available.

They start with a look at what Satis is and how it fits into the whole Composer installation process. From there, they show how to get it installed (via Composer) and using a "mirrored-packages.conf" configuration file to point to the repositories. They include the steps to get it up and running in Apache and show a simple command to get the latest versions for the mirrored packages (perfect for a cron job). There's also some testing included there at the end, parsing and validating the configuration file.

0 comments voice your opinion now!
composer local mirror satis package tutorial introduction

Link: http://net.tutsplus.com/tutorials/php/setting-up-a-local-mirror-for-composer-packages-with-satis/

blog comments powered by Disqus

Similar Posts

DevShed: The Basics of Implementing Adapter Objects with PHP

PHPFreaks.com: Hardening PHP with Suhosin

Kevin Schroeder's Blog: Encrypted session handler

PHPHacks.com: Generate OpenOffice documents with PHP

DevShed: Additional Methods for Using SQLite with PHP 5


Community Events











Don't see your event here?
Let us know!


application project example symfony2 podcast composer install unittest release security package database framework introduction performance hhvm facebook language component hack

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework