News 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

Phil Sturgeon: Package Watch: Image Management

Nefarious Designs: Object-Oriented PHP Part 1: Definition

Android Hive: Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL

Ibuildings techPortal: Doing the Heavy Lifting: Gearman and Magento

Rob Allen's Blog: MongoDB on OS X with the stock PHP installation


Community Events





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


conference interview library community list tool version language opinion composer symfony podcast series security laravel voicesoftheelephpant introduction release framework artisanfiles

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