Coder Social home page Coder Social logo

superuserdev / schemaserver Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 265 KB

A microdata-based API server written in PHP using PostgreSQL

License: GNU Lesser General Public License v3.0

PHP 90.21% SQLPL 9.79%
php postgresql api api-server json schema-org microdata json-ld

schemaserver's Introduction

Waffle.io - Columns and their card count

schemaserver

GitHub license GitHub version Build Status GitHub issues GitHub pull requests Join the chat at https://gitter.im/schemaserver/Lobby

GitHub forks GitHub stars Twitter

A microdata-based API server written in PHP using PostgreSQL


Overview

A PHP implementation of shgysk8zer0/api-specs using PostgreSQL.

Installation

git submodule add git://github.com/superuserdev/schemaserver.git path/to/classes/superuserdev/schemaserver

If you or on Fedora, install PostgreSQL using:

sudo dnf install php-pgsql

Usage

<?php
namespace Project\Example;
// Setup auto-loading using `spl_autoload`
set_include_path(realpath('path/to/classes') . PATH_SEPARATOR . get_include_path());
spl_autoload_extensions('.php');
spl_autoload_register();
// Alias
use \SuperUserDev\SchemaServer\{Thing}

// Use (need to set Content-Type header)
header('Content-Type: ' . Thing::CONTENT_TYPE);

$thing = new Thing();
$thing->name = 'Thing 1';
echo json_encode($thing);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.