PHPackages                             vitormattos/blueprint-sdk-maker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. vitormattos/blueprint-sdk-maker

ActiveLibrary[API Development](/categories/api)

vitormattos/blueprint-sdk-maker
===============================

Create SDK client from API Blueprint

0.3(8y ago)1465[2 issues](https://github.com/vitormattos/blueprint-sdk-maker/issues)MITPHPPHP &gt;=7CI failing

Since May 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vitormattos/blueprint-sdk-maker)[ Packagist](https://packagist.org/packages/vitormattos/blueprint-sdk-maker)[ Docs](https://github.com/vitormattos/blueprint-sdk-maker)[ RSS](/packages/vitormattos-blueprint-sdk-maker/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (8)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7988760392696d4d90379917b9ae68beb24d6c24af06d89544b0e2a410e3c5b7/68747470733a2f2f7472617669732d63692e6f72672f7669746f726d6174746f732f626c75657072696e742d73646b2d6d616b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vitormattos/blueprint-sdk-maker)[![Coverage Status](https://camo.githubusercontent.com/1e7e3dfc093c095bfee9f229bc414b4fc4e84ea85c2d4d0a337ee6633b322fda/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7669746f726d6174746f732f626c75657072696e742d73646b2d6d616b65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/vitormattos/blueprint-sdk-maker?branch=master)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![Latest Stable Version](https://camo.githubusercontent.com/f0ca1ea0a3071f23f9bddcf7338a0b1b7d12ed27dd82b5ec0dab9752c8d77e81/68747470733a2f2f706f7365722e707567782e6f72672f7669746f726d6174746f732f626c75657072696e742d73646b2d6d616b65722f762f737461626c65)](https://packagist.org/packages/vitormattos/blueprint-sdk-maker)[![Minimum PHP Version](https://camo.githubusercontent.com/a4f22f6711703a9e9345fe97cbda880918118648ceee1d89d5991489b9de9f66/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/e02ad220bcb476ea445ca10d67161d6770ab4d41dd1af21c847de2fa892d068d/68747470733a2f2f706f7365722e707567782e6f72672f7669746f726d6174746f732f626c75657072696e742d73646b2d6d616b65722f6c6963656e7365)](https://packagist.org/packages/vitormattos/blueprint-sdk-maker)

API Blueprint Parser
====================

[](#api-blueprint-parser)

> [API Blueprint](https://apiblueprint.org/) is a powerful high-level API description language for web APIs.

Through that's project it's possible parse `.apib` files, get all their properties and generate all files needed to push a new SDK.

How do I get started?
---------------------

[](#how-do-i-get-started)

**NOTE:***Blueprint SDK Maker depends on the [Drafter](https://github.com/apiaryio/drafter) library. Please see that repo for build instructions.*

To generate standalone phar file, set the following in your php.ini:

```
; http://php.net/phar.readonly
phar.readonly = Off

```

If you don't need generate `phar`, run Blueprint SDK Maker using the option `--no-phar`.

### As a phar (Recommended)

[](#as-a-phar-recommended)

Download the latest `phar` **[here](https://github.com/vitormattos/blueprint-sdk-maker/releases/latest)**.

You should put it anywhere that facilitates its accessibility (such /usr/local/bin) and chmod should be 755. You can even rename it to just the box to avoid having to type the `.phar` extension every time.

Parsing `.apib` files
---------------------

[](#parsing-apib-files)

Run the follow command replacing `` by your `.apib` file. The default output of this command is a directory called `build` containing the source of your SDK and a phar (`api.phar`) to use your SDK standalone.

```
blueprint-sdk-maker make

```

Example of using generated SDK
------------------------------

[](#example-of-using-generated-sdk)

### From phar file

[](#from-phar-file)

Create file called `test.php` into same directory of `api.phar` and run `test.php`

```
