Make Bing Maps Sing In PHP

Adam DuVander
Sep. 04 2009, 02:37AM EDT

What's this, Microsoft pushing an open source programming language? Indeed, there is an integration kit that gives PHP developers a boost creating a database-powered Bing Maps application.

There are options for MySQL and SQL Server Lite, though the latter also requires Windows hosting. In either case, you'll also need PHP 5.2+ (required because the kit uses JSON). PHP and MySQL are the most common programming language and database, supported by almost every host, so these requirements are truly open to everyone, compared to usual examples of Microsoft technologies.

Bing Maps demo using PHP

The project site has a working demo, including the ability to add points. Or, download the code and try it on your own server. One of the best parts about this kit is that it comes ready to go with the same code as the demo. All you need to provide are database connection details.

The project was sponsored by Microsoft's interoperability initiative and like their PHP on Windows efforts, it shows Microsoft is willing to reach out beyond their usual constituency to attract new developers. As a result, this useful resource gives PHP programmers and those that haven't already adopted Microsoft's suite of tools an easy introduction to programming Bing Maps.

Hat tip: Chris Pendleton

Adam DuVander -- Adam heads developer relations at Orchestrate, a database-as-a-service company. He's spent many years analyzing APIs and developer tools. Previously he worked at SendGrid, edited ProgrammableWeb and wrote for Wired and Webmonkey. Adam is also the author of mapping API cookbook Map Scripting 101.

Comments

Comments(3)

This "intergration kit" isn't PHP. It's Javascript on the client that then hits the server to save the data. It is not a Bing PHP SOAP SDK.