PHPackages                             postedin/docode-php - 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. postedin/docode-php

ActiveLibrary[API Development](/categories/api)

postedin/docode-php
===================

Library which consumes the https://docode.cl API

1.0.0-beta2(8y ago)0255MITPHPPHP &gt;=7.0.18

Since Dec 19Pushed 8y ago3 watchersCompare

[ Source](https://github.com/postedin/docode-php)[ Packagist](https://packagist.org/packages/postedin/docode-php)[ RSS](/packages/postedin-docode-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Docode PHP
==========

[](#docode-php)

PHP library which consumes the  API

[![Packagist](https://camo.githubusercontent.com/7d98227854b6a06fa24666b8507218dec15a1ef1256f975444ed7d9a883dbcc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f73746564696e2f646f636f64652d7068702e737667)](https://packagist.org/packages/postedin/docode-php)[![Packagist](https://camo.githubusercontent.com/3b287c9c712f1fe18e123dc9e066d6b0577b73b23b6725e979e34e07f2f695d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f73746564696e2f646f636f64652d7068702e737667)](https://packagist.org/packages/postedin/docode-php)[![CircleCI](https://camo.githubusercontent.com/bb8be07f3f7ff60889c37c27b3a7c84cf4c2a6fc88a5770ce5f74eb58077c755/68747470733a2f2f636972636c6563692e636f6d2f67682f706f73746564696e2f646f636f64652d7068702f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/postedin/docode-php/tree/master)

Installation
------------

[](#installation)

```
composer require postedin/docode-php
```

Setup
-----

[](#setup)

You need to get your token manually. We don't support getting the token in this package since it requires the **plain text** username and password.
To get your token make a manual request to the Docode API with that information.

You can do this with `curl` in a terminal:

```
curl -X POST -H "Content-Type:application/json" https://docode.cl/app/api/token -d '{"username": "YOUR USERNAME HERE", "password": "YOUR_PASSWORD_HERE"}'
```

Alternatively, we use  for testing the API and making manual requests.

Basic Usage
-----------

[](#basic-usage)

*as taken from the examples directory*

```
