1. Go to this page and download the library: Download soomedia/floorplanner-v2 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/ */
soomedia / floorplanner-v2 example snippets
$client = new \SooMedia\Floorplanner\FloorplannerClient('your_api_key');
$response = $client->projects()->create([
'project' => [
'name' => 'My new house',
'description' => 'This is my first floor plan',
'external_identifier' => 'ID3344',
'project_template_attributes' => [
'template_id' => 10,
],
],
]);
/*
[
'id' => 170280,
'user_id' => 103,
'public' => false,
'name' => 'My new house',
'description' => 'This is my first floor plan',
'project_url' => '2fv03b',
'created_at' => '2017-03-23T15:48:19.000Z',
'updated_at' => '2017-03-23T15:48:19.000Z',
'enable_autosave' => false,
'external_identifier' => 'ID3344',
'exported_at' => null,
]
*/
$client = new \SooMedia\Floorplanner\FloorplannerClient(
'your_api_key',
'https://sandbox.floorplanner.com/'
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.