Skip to content

Commit 778b4d8

Browse files
committed
WIP documentation
1 parent 809efb2 commit 778b4d8

File tree

7 files changed

+266
-10
lines changed

7 files changed

+266
-10
lines changed

AutoMapper/introduction.rst

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
AutoMapper
2+
===========
3+
4+
Jane JsonSchema is a library to generate models and serializers in PHP from a `JSON Schema`_ draft v4.
5+
6+
Installation
7+
------------
8+
9+
Add this library with composer as a ``dev`` dependency:
10+
11+
.. code-block:: bash
12+
13+
composer require --dev jane-php/json-schema "^5.0"
14+
15+
This library contains a lot of dependencies to be able to generate code which are not needed on runtime. However, the generated
16+
code depends on other libraries and a few classes that are available through the runtime package. It is highly recommended
17+
to add the runtime dependency as a requirement through composer:
18+
19+
.. code-block:: bash
20+
21+
composer require jane-php/json-schema-runtime "^5.0"
22+
23+
By default, generated code is not formatted, to make it compliant to PSR2 standard and others format norms, you can add the
24+
`PHP CS Fixer`_ library to your dev dependencies (and it makes it easier to debug!):
25+
26+
.. code-block:: bash
27+
28+
composer require --dev friendsofphp/php-cs-fixer
29+
30+
31+
.. _`JSON Schema`: http://json-schema.org/
32+
.. _PHP CS Fixer: http://cs.sensiolabs.org/

OpenAPI/introduction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Json Schema
1+
OpenAPI
22
===========
33

44
Jane OpenAPI is a library to generate, in PHP, an http client and its associated models and serializers from a `OpenAPI`_

Pipfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
sphinx = "*"
10+
sphinx-rtd-theme = "*"
11+
12+
[requires]
13+
python_version = "2.7"

Pipfile.lock

+205
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bc.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ No class will be removed between minor versions, but there can be new classes ad
2727
Runtime Libraries
2828
-----------------
2929

30-
JsonSchema Runtime and OpenAPI Runtime libraries have a standard BC Promise.
30+
JsonSchema Runtime and OpenAPI Runtime libraries have a standard BC Promise.

index.rst

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Jane: Tools for generating PHP Code
22
===================================
33

4-
Jane regroups different tools that aim to generated high quality PHP
5-
code respecting common and advanced PSR.
4+
Jane is a set of libraries to generate Models & API Clients based on JsonSchema / OpenAPI specs
5+
by following high quality PHP code guidelines and respecting common & advanced PSR.
66

7-
* JsonSchema
8-
* OpenAPI
7+
* :doc:`/JsonSchema/introduction`
8+
* :doc:`/OpenAPI/introduction`
9+
* :doc:`/AutoMapper/introduction`
910

1011
.. toctree::
1112
:hidden:
@@ -31,5 +32,10 @@ code respecting common and advanced PSR.
3132
Introduction <OpenAPI/introduction>
3233
Generating a Client <OpenAPI/generate>
3334
Using a generated client <OpenAPI/usage>
34-
Asynchronous Client <OpenAPI/async>
3535
Extending the Client <OpenAPI/extending>
36+
37+
.. toctree::
38+
:hidden:
39+
:caption: AutoMapper
40+
41+
Introduction <AutoMapper/introduction>

internal.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Internal
22
========
33

4-
This documentation describes how all Jane libraries work to generate the code. It is mainly oriented for people wanting
5-
to contribute to this library.
4+
This documentation describes how JsonSchema & OpenAPI Jane libraries work to generate the code.
5+
It is mainly oriented for people wanting to contribute to theses libraries.
66

7-
This library is based on 3 different steps:
7+
Theses libraries is based on 3 different steps:
88

99
Guessing
1010
--------

0 commit comments

Comments
 (0)