Skip to Content

allejo

interstellar space pirate extraordinaire • https://allejo.io

Introducing PhpSoda

I'm very proud to announce the birth of a new project and its first release! It's called PhpSoda and it's not for the type of soda that you drink (even though I love soda), it's actually an acronym for the Socrata Open Data API. What's Socrata? Well they're a pretty neat company that hosts a lot of open data for governments. They host open data for the US Federal Government and for local governments like the City of Santa Monica, where I work at the time of writing this.

At my job, we use C# for everything development and my coworker contributed the .NET library to the Socrata community because the library that existed before had room for some changes and refactoring. Similarly, Socrata has an official PHP library for working with the API but... It had plenty of shortcomings and it wasn't written in a very object oriented fashion. While I'm definitely not one to talk, I felt that it only contributed to the reputation of bad PHP code. I decided to write my own PHP library and send a pull request to have my library listed under the "Community Libraries" section of the Socrata developer website.

Socrata is mainly aimed at the public sector and I know PHP isn't too common in the public sector but for the PHP enthusiasts out there, I hope this library helps! I'm always open to suggestions and feedback, just submit an issue and I'll be glad to discuss things.

I have spent hours documenting my library so please check out the Wiki and install the package via Composer!

I'm ecstatic to see my library listed on their website! This has been the first library I've written and one of my first standalone open source projects not related to BZFlag or WordPress. I plan on extending my horizons a bit further with some more projects I have in mind that I will open source, so stay tuned... This is exciting!

Projects
socrata, php, library, api