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

DeveloperTutorials.com: Upload Files to MySQL using PHP Tutorial

Brandon Savage's Blog: Making Zend_Navigation Useful

The Bakery: Six New Articles/Tutorials Posted

GoodPHPTutorials.com: Integrating the Authorize.Net AIM API with PHP

Rob Allen's Blog: Determining if a ZF view helper exists


Community Events











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


component code install series framework unittest hack hhvm opinion application composer security package overview facebook podcast language symfony2 release introduction

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