PHPackages                             howlowck/socrata - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. howlowck/socrata

ActiveLibrary[API Development](/categories/api)

howlowck/socrata
================

110PHP

Since Aug 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/howlowck/socrata)[ Packagist](https://packagist.org/packages/howlowck/socrata)[ RSS](/packages/howlowck-socrata/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Socrata
=======

[](#socrata)

-

An easy API wrapper for Socrata API using Guzzle

Feature
-------

[](#feature)

- Easily intergrates with Laravel
- Chicago Service provider

"Install"
---------

[](#install)

### add to composer.json

[](#add-to-composerjson)

in `composer.json` add following in `require`:

```
"howlowck/socrata": "dev-master"

```

### set configuration file (optional)

[](#set-configuration-file-optional)

run `php artisan config:publish howlowck/socrata` then change the values according under `app/config/packages/howlowck/socrata/config.php`

### add service provider (optional)

[](#add-service-provider-optional)

In `app/config/app.php` add the following in `providers`

```
'Howlowck\Socrata\SocrataChicagoServiceProvider',

```

That will load the Socrata Chicago Data Portal routes, and register the wrapper as a singleton.

Usage
-----

[](#usage)

**Create a Socrata Instance**
If you didn't use the service provider, you can easily create a Socrata instance like so:

```
$soc = new Howlowck\Socrata\Socrata($baseUrl, $secret_token, $public_token);
```

**Create a Request**
Without service provider (con't from above)

```
$request = $soc->createRequest('7as2-ds3y');
```

Or with service provider loaded for Chicago

```
$request  = App::make('socrata-chicago')->createRequest('7as2-ds3y');
```

**filter on Socrata datasource with SoQL query**
You can use [query keywards outlined on socrata's site](http://dev.socrata.com/docs/queries.html) as methods

```
$request->where('number_of_potholes_filled_on_block>3');
$request->select('zip');
```

**simple filter**
You can also run any [simple filters](http://dev.socrata.com/docs/filtering.html) as methods.

```
$req->service_request_number('11-00026951');
```

**get Response**
Response will be return as [GuzzleHttp\\Message\\Response](http://api.guzzlephp.org/class-Guzzle.Http.Message.Response.html) which then can be turned into number of formats

To get JSON from response

```
$response = $req->get();
$jsonResponse = $response->json();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e08f9bb8228edf1f01ccb4bbccdf8e52ade99b66cbfb538e6df844bdc74a4569?d=identicon)[howlowck](/maintainers/howlowck)

---

Top Contributors

[![howlowck](https://avatars.githubusercontent.com/u/338265?v=4)](https://github.com/howlowck "howlowck (6 commits)")

### Embed Badge

![Health badge](/badges/howlowck-socrata/health.svg)

```
[![Health](https://phpackages.com/badges/howlowck-socrata/health.svg)](https://phpackages.com/packages/howlowck-socrata)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
