Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.19 KB

PHP Composer License Latest Stable Version Latest Unstable Version

writeas.php

Implementation of the write.as API in PHP.

It's very basic, and PHP 7.x oriented, but should work on most versions as it's only clear dependency is curl.

<?php
require_once( "lib/writeas.php" );

Or use composer:

composer require theimpossibleastronaut/writeas.php
<?php
require __DIR__ . '/vendor/autoload.php';

Then check one of the examples!

require_once( "../lib/writeas.php" );

$context = new \writeas\Context();
$post = new Post( $context );
$post->body = "Hello from Writeas.php";
$post->save();

Work in progress

  • Authentication
  • Posts
  • Collections
  • Users