PHP code example of kaweb / honeycomb

1. Go to this page and download the library: Download kaweb/honeycomb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kaweb / honeycomb example snippets


use Kaweb\Honeycomb\Application as Honeycomb;

$honeycomb = new Honeycomb([
	'username' => '',
	'password' => '',
	'client_id' => '',
	'client_secret' => '',
]);

$honeycomb->users()->retrieve();

$honeycomb->users()->retrieve(123);

$honeycomb->users()->update(123 [
	'first_name' => 'Busy',
	'last_name' => 'Bee'
]);

$honeycomb->users()->delete(123);

$honeycomb->companies()->register([
	"email" =>            "[email protected]",
    "first_name" =>       "Buzzy",
    "last_name" =>        "Bee",
    "phone" =>            "123456789",
    "description" =>      "Landlord",
    "company_name" =>     "Inventory Hive",
]);