Download the PHP package sgrigorjev/adf-tools without Composer
On this page you can find all versions of the php package sgrigorjev/adf-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sgrigorjev/adf-tools
More information about sgrigorjev/adf-tools
Files in sgrigorjev/adf-tools
Package adf-tools
Short Description Atlassian Document Format PHP Tools
License MIT
Informations about the package adf-tools
adf-tools
Atlassian Document Format PHP Tools
This repository is a fork of Damien Harper's original repository adf-tools, with the following changes added:
- Allow direct append for nodes for complex composition: allow two alternative ways of constructing a document, one existing through a chain of calls, and one through a direct append of nodes for more complex documents.
- Added extension node: added
Extension
node that used in Confluence documents.
Pull requests to the original repository
- Allow direct append for nodes for complex composition #16
- Added extension node (used in Confluence documents) #17
If the listed pull requests are accepted by the original library author, this repository will no longer be needed, the original library should be used in that case.
Documentation
- Documentation of this library can be found here.
- Official Atlassian Document Format
- Atlassian Document Format JSON Schema
Main innovations
Direct node append
In addition to the existing document composition style:
An alternative method has been added to directly add nodes for more complex composition:
In this case, it will be possible to create and append nodes dynamically:
Extension node
Although element Extension
is not described in Atlassian Document Format, in practice it is used in documents for the Confluence. One of the most famous extensions is, for example, the Table of Contents.
A new node type Extension
has been added:
or using direct node append:
Credits
- Thanks to all contributors
License
adf-tools
is free to use and is licensed under the MIT license
All versions of adf-tools with dependencies
ext-json Version *