• Stars
    star
    229
  • Rank 174,666 (Top 4 %)
  • Language
    CSS
  • Created over 11 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

documentation for the oauth2-server-php library

OAuth2 Server PHP Documentation

This repository hosts the documentation for the oauth2-server-php library.

All submissions are welcome! To submit a change, fork this repo and send us a pull request.

Setup

Ruby 1.9 is required to build the site.

Get the nanoc gem, plus kramdown for markdown parsing:

bundle install

Compile the src into the output directory by running the following command:

nanoc compile

You can see the available commands with nanoc:

nanoc -h

Nanoc has some nice documentation to get you started. Though if you're mainly concerned with editing or adding content, you won't need to know much about nanoc.

Development

Nanoc compiles the site into static files living in ./output. It's smart enough not to try to compile unchanged files:

$ nanoc compile
Loading site data...
Compiling site...
   identical  [0.00s]  output/css/960.css
   identical  [0.00s]  output/css/pygments.css
   identical  [0.00s]  output/css/reset.css
   identical  [0.00s]  output/css/styles.css
   identical  [0.00s]  output/css/uv_active4d.css
      update  [0.28s]  output/index.html

Site compiled in 5.81s.

You can setup whatever you want to view the files. If you have the adsf gem, however (I hope so, it was in the Gemfile), you can start Webrick:

$ nanoc view
$ open http://localhost:3000

Compilation times got you down? Use autocompile!

$ nanoc autocompile

This starts a web server too, so there's no need to run nanoc view. One thing: remember to add trailing slashes to all nanoc links!

Deploy

$ rake publish

Styleguide

Not sure how to structure the docs? Here's what the structure of the API docs should look like:

# API title

## API endpoint title

    [VERB] /path/to/endpoint.json

### Parameters

name
: description

### Input (request json body)

<%= json :field => "sample value" %>

### Response

<%= headers 200, :pagination => true, 'X-Custom-Header' => "value" %>
<%= json :resource_name %>

Note: We're using Kramdown Markdown extensions, such as definition lists.

JSON Responses

We specify the JSON responses in ruby so that we don't have to write them by hand all over the docs. You can render the JSON for a resource like this:

<%= json :issue %>

This looks up GitHub::Resources::ISSUE in lib/resources.rb.

Some actions return arrays. You can modify the JSON by passing a block:

<%= json(:issue) { |hash| [hash] } %>

Terminal blocks

You can specify terminal blocks with pre.terminal elements. It'd be nice if Markdown could do this more cleanly...

<pre class="terminal">
$ curl foobar
....
</pre>

This isn't a curl tutorial though, I'm not sure every API call needs to show how to access it with curl.

More Repositories

1

oauth2-server-php

A library for implementing an OAuth2 Server in php
PHP
3,214
star
2

oauth2-demo-php

A demo application for running an OAuth2 server
PHP
743
star
3

oauth2-server-bundle

OAuth2 for your Symfony Application
PHP
107
star
4

php-echonest-api

PHP classes for the Echo Nest API
PHP
99
star
5

oauth2-server-httpfoundation-bridge

Integrate HttpFoundation into your oauth2-server library
PHP
51
star
6

csDoctrineActAsSortablePlugin

Sortable behavior for Doctrine objects
PHP
28
star
7

redmine-assets-plugin

Provides a central location to view all your project's assets
Ruby
24
star
8

phpunit-retry-annotations

Traits for retrying test methods and classes in PHPUnit
PHP
22
star
9

sfHadoriThemePlugin

symfony admin generator with a beautiful theme and clean generated code.
PHP
21
star
10

Donate-Nashville

A relief effort to connect donators with those in need
PHP
16
star
11

csDoctrineActAsGeolocatablePlugin

Automatically fetch latitude and longitude for your Doctrine model
PHP
14
star
12

Symfony-Snippets

Symfony Code Snippets
PHP
14
star
13

csSettingsPlugin

Add simple user-editable settings to your application
PHP
12
star
14

symfony-on-app-engine-flex

A demo application for symfony on app engine flexible
PHP
9
star
15

sfThemeGeneratorPlugin

Plugin for creating and extending modules using a theme
PHP
8
star
16

Symplist

Symfony Plugins List
PHP
7
star
17

csDoctrineActAsAttachablePlugin

Attachable Behavior for file uploads
PHP
6
star
18

Hadori-Demo

Demo application for the Hadori Admin Generator
PHP
6
star
19

faceswap-docker

Dockerization for the faceswap library `matthewearl/faceswap`
6
star
20

faceswap-app

Python
5
star
21

csSecurityTaskExtraPlugin

Task for assessing the security coverage of your application
PHP
4
star
22

sfUploadPlugin

An easy way to add multiple uploads to your model
PHP
3
star
23

csBackupPlugin

A plugin for easily backing up your MySQL database, Rsyncing files, etc.
Shell
3
star
24

ChartDown

Short Hand for Chart Writing
PHP
2
star
25

google-mybusiness-php-client

PHP
2
star
26

sfDoctrineMarkdownPlugin

Use the Markdown syntax for a field on your Doctrine models via a Doctrine behavior
PHP
2
star
27

dlib-elixir

dlib for Elixir
C++
2
star
28

sfImageCachePlugin

A plugin for caching images of various sizes
PHP
2
star
29

BasicParameterValidation

Basic Parameter Validator for PHP
PHP
2
star
30

format-owlbot-pr-chrome-extension

JavaScript
1
star
31

sfDoctrineActAsLocalizablePlugin

Automatically convert a localizable field using the Localizable template
PHP
1
star
32

faceswap-wordpress

PHP
1
star
33

sfHyperwordPlugin

Link words dynamically in your code to link to other pages (similar to "Wikipedia")
PHP
1
star
34

composer-git-proxy

Repository for splitting a single git repository into multiple composer packages
Shell
1
star
35

P4-CLI

Scripts to make P4 CLI easier to use
PHP
1
star
36

sfServiceContainerPlugin

A Symfony 1.4 Plugin for using the Service Container
PHP
1
star