Skip to content
Vladimir Jimenez edited this page Oct 14, 2015 · 5 revisions

Using PhpSoda in your project couldn't get easier.

Using Composer

One way to start using PhpSoda in your project is by using Composer and requiring the php-soda package.

php composer.phar require allejo/php-soda

Using a Phar

Using an autoloader isn't always the simplest solution when Composer isn't being used. The second official method of using PhpSoda is using the Phar file provided on the Releases page. Simply download the Phar file and include or require it in your PHP script and it can be used as easily as soda-php.

<?php

include "phpsoda.phar";

use allejo\Socrata\SodaClient;

$sc = new SodaClient("opendata.socrata.com");