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

Eric Barnes:
How to set up your Mac for local PHP Development
Aug 05, 2015 @ 10:48:14

Eric Barnes has posted a guide to helping you set up (as he sees it) a good PHP development environment on your Mac that includes Homebrew for package management, Composer, Vagrant and the Laravel Homestead VM for project hosting.

This past weekend I decided it was finally time to wipe my Macbook’s hard drive and start fresh. I have used it daily for several years now and still had artifacts from when I used Mamp. Since then Vagrant has turned to my local server of choice and one of the reasons is how clean you can keep your machine by utilizing it.

After finishing the new Mac OS X install it felt like a new beginning. So clean, so minimal. [...] This go around I wanted to keep it as minimal as possible and only install things I know I need and use. This tutorial covers how I set up my Mac for local PHP Development.

His list of software includes the previously mentioned four as well as the ZSH shell replacing the default bash and, obviously, PHP itself installed via Homebrew.

tagged: osx mac local development homestead composer zsh vagrant homebrew

Link: http://ericlbarnes.com/set-mac-local-php-development/

Setting Up MongoDB on a Mac
Oct 22, 2012 @ 11:31:32

In this new post to DZone.com Andy Hawthorne explains how to install MongoDB on OSX and get a local PHP working with it.

MongoDB is a document oriented, NoSQL database. It is gathering momentum and popularity amongst developers because it is flexible, and scalable at the same time. In this article I will describe how I got it set up and working on my Mac running OS X 10.8.2 and MAMP with PHP 5.2.17, and PHP 5.3.6.

They go a bit simpler route than trying to compile it yourself by using the binaries direct from the source. Instructions are included to test the installation, insert a record and how to install the MongoDB PHP driver for a MAMP installation. It's a shared object, though, so it's not specific to MAMP and could be installed even on the local OSX PHP functionality.

tagged: mongodb mac osx mamp driver binaries tutorial


Ralph Schindler's Blog:
Compiling Gearman (or anything) for Zend Server CE on Snow Leopard
Jan 09, 2012 @ 10:59:35

Ralph Schindler has a new post to his blog today detailing the process you'll need to compile Gearman (or just about anything) on a Zend Server CE install on Snow Leopard.

Zend Server CE for Mac (as of this writing), comes compiled as an i386 executable only. This includes the PHP binary, php library, and apache binaries that come shipped with ZSCE. While ZSCE works great out the box with all the provided extensions, you might find that you want some additional 3rd party PHP extensions compiled/linked into this stack. That's where things get a little confusing, and in this post, we’ll look at how to install the gearman extension.

He give two methods - the easy way where you can export a CFLAGS setting to compile with multiple architectures or the harder way (that works for Gearman), building static libraries. The full list of commands (and some example output) is included in the post. In the comments there's also an example of the install if you're using Macports.

tagged: gearman compile zendserverce snowleopard osx mac tutorial


Fabien Potencier's Blog:
PHP 5.3.0 on Mac OS 10.6 (Snow Leopard)
Nov 05, 2009 @ 08:33:42

Fabien Potencier has been moving over to the Mac OSX platform for some of his development and figured out that he needed a custom installation of PHP 5.3, different than the one that comes with the default install of Snow Leopard. The process was a bit tricky, so he's written up a post as a guide for those wanting to do it too.

To do my work, I need to have several different versions of PHP at hand, with different configurations, and so I always compile my own PHP and Apache binaries on my Mac. [...] Now that I use PHP 5.3.0 more and more, I decided it was time to compile my own version. As it turns out, compiling PHP 5.3.0 on Snow Leopard is a bit involving.

He walks you through the configure command he used, how he patched the iconv.c file, patch the source of PHP with the change and recompile with an EXTRA_LIBs environment variable set. The steps he followed were based on the hints provided in this bug from the PHP.net website.

tagged: compile osx snowleopard mac


Nefarious Designs Blog:
Virtualised Development Environments on a Mac
Sep 07, 2009 @ 14:58:29

On the Nefarious Designs blog today, there's a new post stepping you through every step you'll need (yes, every single one) to get multiple virtual development environments set up with Apache, PHP, MySQL, Python, Django, CouchDB and Twisted.

Since I’ve started doing all of my development on virtual machines, I began thinking about my development workflow: In theory, I should be able to model the perfect server environment virtually. I wasn’t sure what environment I wanted to end up with, but I had a good idea what basic virtual machines I wanted as a starting layout.

He sets up three different environments - development, staging a production - all with the same packages and all built on a base Ubuntu virtual machine. By cloning your customized version, you can built out as many instances as you'd like and tweak each for their intent.

tagged: virtual environment mac osx development


18 Wonderful IDEs for Windows, Mac, and Linux
Jun 04, 2009 @ 11:19:22

If you've been shopping around for a new IDE to use in your development, you might want to check out this new article from NETTUTS.com showing eighteen popular IDEs for several different platforms (Win/Mac/Linux).

Last week we looked at 22 Neat Editors for Windows. But sometimes, a code editor simply isn't enough, especially when you're working with things like databases and classes. Which IDE will you prefer? Hopefully you'll find it below!

IDEs that made the list include:

tagged: linux mac windows ide


Juozas Kaziukenas' Blog:
Ruby on Rails vs PHP (Video)
Feb 25, 2009 @ 09:33:24

Juozas Kaziukenas has reposted a video created by the RailsEmnvy.com folks (one of several, check out YouTube for more) that does a "Mac vs PC" Apple parody commercial of Ruby and PHP.

Gregg Pollack and Jason Seifer from RailsEnvy.com do some Ruby on Rails commercials in the same style of the Mac vs PC ads. Videos produced by Jason Hawkins of MakeFilmWork.com.

Other videos include Ruby on Rails vs .NET, Ruby on Rails vs Django and, of course, Ruby on Rails vs ColdFusion.

tagged: rubyonrails railsenvy video mac versus pc apple parody dotnet django coldfusion


Brandon Savage's Blog:
Examining Zend Server CE On The Mac
Feb 23, 2009 @ 10:23:54

With the recent release of the Zend Server CE (Community Edition) software from Zend, several PHPers around the community have been trying it out and posting some of their experiences. Brandon Savage has posted some of his thoughts on the release as he tried out the Mac OS X version.

There are many good things in this product. Among them, is the ability to easily activate and deactivate most of the plugins and extensions that come bundled with PHP by default. [...] Unfortunately, the problem also contains many what I would call "bugs" or usability enhancements that are simply not there.

A few of the things that made his bad list included: a lacking install process (too long?), the lack of an obvious logging tool and a different sort of checking for setting directives (a check against a regular expression?)

He found some good in the release too - the easy to install extensions, the number of extensions it comes bundled with and the inclusion of MySQL with the stack. He notes he won't be abandoning his typical install (like MAMP/XAMPP) over this tool - at least not for right now.

tagged: examine zendserver zend community edition mac osx good bad


Vid Luther's Blog:
Using your Mac as a local web development environment.
Feb 09, 2009 @ 09:32:14

Having a development environment on a remote machine (maybe production, maybe test) is nice, but sometimes you just need the speed and simplicity that something a bit more local can give you. Vid Luther talks about setting up just such a local development environment on your Mac. (Sorry Windows guys - maybe check out WAMP)

This post is for the techies who know me, and are switching. Some are coming from Windows, some from Linux, some are designers who need to do some local development. So, I’ll try to keep this post as simple as possible, and perhaps more like a tutorial, where you can "copy and paste" commands and files.

He recommends a few pieces of software that you'll need - things like XAMPP and MySQL - and some other "nice to haves" like TextMate, Subversion and Expandrive. He shows how to set up the shell environment, create virtual hosts and add them into the /etc/hosts file so they'll resolve locally.

tagged: mac osx local development environment xampp mysql tutorial shell virthost


Raphael Stolt's Blog:
Installing Zend_Tool on Mac OS X
Jan 26, 2009 @ 07:57:10

Raphael Stolt has a new blog post looking at the installation of a relatively new component in the Zend Framework toolset - Zend_Tool - on an OS X machine.

Yesterday I decided to tiptoe into the development of custom Zend_Tool Providers as the introductional article series by Ralph Schindler motivated me to learn more about it and I already have some useful use cases on my mind. Therefor I prior had to install the Zend_Tool component and it's driving CLI scripts on my MacBook.

Its a three step processes to get things up and running:

  • Fetching and installing the Zend_Tool component
  • Putting the Zend_Tool CLI scripts to work
  • Checking the installation

The tricks is to get everything installed in the right place and to add the links to directories where they're needed. Once its installed a simple "zf show version" command will let you know its all working correctly.

tagged: osx mac install zendframework zendtool tutorial