All Projects → socrata → Soda Php

socrata / Soda Php

Licence: other
A simple library to make it easier to access SODA services from PHP

Projects that are alternatives of or similar to Soda Php

Web Series
📚 现代 Web 开发语法基础与工程实践,涵盖 Web 开发基础、前端工程化、应用架构、性能与体验优化、混合开发、React 实践、Vue 实践、WebAssembly 等多方面。
Stars: ✭ 666 (+1010%)
Mutual labels:  engineering
Aeropython
Classical Aerodynamics of potential flow using Python and Jupyter Notebooks
Stars: ✭ 714 (+1090%)
Mutual labels:  engineering
Design Patterns For Humans
An ultra-simplified explanation to design patterns
Stars: ✭ 32,376 (+53860%)
Mutual labels:  engineering
Jbytemod Beta
Java bytecode editor
Stars: ✭ 602 (+903.33%)
Mutual labels:  engineering
Covid 19
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
Stars: ✭ 27,932 (+46453.33%)
Mutual labels:  engineering
Sourcerer App
🦄 Sourcerer app makes a visual profile from your GitHub and git repositories.
Stars: ✭ 6,645 (+10975%)
Mutual labels:  engineering
Awesome Scientific Computing
😎 Curated list of awesome software for numerical analysis and scientific computing
Stars: ✭ 476 (+693.33%)
Mutual labels:  engineering
Soda Android Sdk
Stars: ✭ 31 (-48.33%)
Mutual labels:  engineering
Awesome Startup
😎 All the required resources to build your own startup
Stars: ✭ 702 (+1070%)
Mutual labels:  engineering
Pyflo
PyFlo is an open-source library written in Python for performing hydraulic and hydrology stormwater analysis. Features include network hydraulic grade analysis and time/iteration based storage and flood routing simulations.
Stars: ✭ 19 (-68.33%)
Mutual labels:  engineering
Chaos Monkey Spring Boot
Chaos Monkey for Spring Boot
Stars: ✭ 646 (+976.67%)
Mutual labels:  engineering
System Bus Radio
Transmits AM radio on computers without radio transmitting hardware.
Stars: ✭ 5,831 (+9618.33%)
Mutual labels:  engineering
K1801
1801 series ULA reverse engineering
Stars: ✭ 16 (-73.33%)
Mutual labels:  engineering
Eng Practices Cn
谷歌工程实践
Stars: ✭ 546 (+810%)
Mutual labels:  engineering
Constant Vigilance
Learn this if you want to be a software engineer. Constant vigilance means being continually aware of areas that need improvement. For me, I am constantly searching for valuable resources to ensure I am able to solve any problem that comes my way.
Stars: ✭ 30 (-50%)
Mutual labels:  engineering
Awesome Mecheng
Awesome Mechanical Engineering Resources
Stars: ✭ 495 (+725%)
Mutual labels:  engineering
Meshio
input/output for many mesh formats
Stars: ✭ 814 (+1256.67%)
Mutual labels:  engineering
Datasync
Desktop / Console application for updating Socrata datasets automatically.
Stars: ✭ 60 (+0%)
Mutual labels:  engineering
Documents
Documentation for Phase 4 Ground
Stars: ✭ 31 (-48.33%)
Mutual labels:  engineering
Abstractionlayers
Abstraction Layers
Stars: ✭ 16 (-73.33%)
Mutual labels:  engineering

Build Status

Socrata - Basic PHP Library

This library provides a simple wrapper for accessing some of the features of the Socrata Open Data API from PHP. Currently it supports HTTP GET, POST, and PUT operations.

The library is very simple. To access the Socrata API, you first instantiate a "Socrata" object, passing in the domain of the data site you wish to access. The library will also accept the full root path including the protocol (ex: http://data.medicare.gov). Then you can use its included methods to make simple API calls:

Supported PHP versions

In order to access the SODA API via HTTPS, clients must now support the Server Name Indication (SNI) extension to the TLS protocol. What does this mean? It means that if you're using soda-php, you must use PHP 5.6 or above, as that is when PHP introduced support for SNI.

Install

Via composer

composer require socrata/soda-php

Usage

$socrata = new Socrata("data.medicare.gov");
$response = $socrata->get("abcd-2345");

In your API calls, specify ether the full endpoint relative path (eg: /resource/abcd-2345.json), or the dataset ID (eg: abcd-2345).

Querying

Simple filters and SoQL Queries can be passed as a parameter to the get function:

$socrata = new Socrata("data.austintexas.gov", $app_token);

$params = array("\$where" => "within_circle(location, $latitude, $longitude, $range)");

$response = $socrata->get($view_uid, $params);

Publishing

To use the library to publish data you can use the PUT (replace) or POST (upsert) methods:

$socrata = new Socrata("data.medicare.gov", $app_token, $user_name, $password);

// Publish data via 'upsert'
$response = $socrata->post("abcd-2345", $data_as_json);

// Publish data via 'replace'
$response = $socrata->put("abcd-2345", $data_as_json);

The library also includes a simple example application, which retrieves rows from a dataset and dumps them in a simple table.

License

Apache License, Version 2.0. Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].