Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 626 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 626 Bytes

hook-php Build status

PHP client for hook.

Different from JavaScript client, there is no callback. Every request is synchronous.

How to use (API Reference)

<?php
$hook = Hook\Client::configure(array(
  'app_id' => 1,
  'key' => '006f04b4f723c9920e259a746f9318be',
  'endpoint' => 'http://hook.dev/index.php/'
));

$hook->collection('scores')->create(array(
  'name' => 'Endel',
  'score' => 7
));

License

MIT