OS X: Configuring webserver (+for Laravel)

When developing in Windows I’m using Wampserver. When switching to OS X I started searching for an alternative and found some possible solutions. After testing some, I found AMPPS to be the best alternative because of the ease of adding domains. For optimal usage and developing with Laravel, it requires some extra configuration.

Continue reading OS X: Configuring webserver (+for Laravel)

OS X: install composer

One of the first thing to install for PHP development is Composer. The installation is pretty much straight forward, but it’s not available globally after installation.

Installing composer

  1. Download composer:
    url -sS https://getcomposer.org/installer | php
  2. Move the the bin folder:
    mv composer.phar /usr/local/bin/composer.phar

Enable globally

  1. Edit .bash_profile with the editor of your choice (nano, vim, etc.)
  2. Add:
    alias composer="php /usr/local/bin/composer.phar"
  3. Close terminal and open again

After this, Composer is available globally.