2017 © Pedro Peláez
 

library substance-php-sdk

A simple PHP SDK to integrate the Physical Web platform Substance into any PHP project.

image

rakete7/substance-php-sdk

A simple PHP SDK to integrate the Physical Web platform Substance into any PHP project.

  • Monday, September 11, 2017
  • by raphbibus
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

substance-php-sdk

PHP SDK to integrate Substance in CMS systems, (*1)

Example

```php, (*2)

<?php, (*3)

require_once DIR . '/vendor/autoload.php'; // Autoload files using Composer autoload, (*4)

use Substance\SubstanceSdk; use Substance\Models\Content; use Substance\Models\ContentAssociation;, (*5)

$substance = new SubstanceSdk("8991544805321d10cbe97e602a88aa8ef5e91xxx","a5002dbef6e6dc0597ba1e5657e9e5cec1e66xxx");, (*6)

$substance->auth();, (*7)

$beacons = $substance->getBeacons();, (*8)

$beacon = $beacons->random(); echo $beacon->getName()."\n"; echo $beacon->getAlias()."\n";, (*9)

$content = new Content("https://www.rakete7.com","Rakete 7 Website","Hab ich mit dem SDK erstellt!");, (*10)

$contentAssociation = new ContentAssociation($beacon,$content);, (*11)

$updatedBeacon = $substance->associateContent($contentAssociation);, (*12)

echo "connected beacon\n";, (*13)

$updatedBeacon = $substance->disassociateContent($updatedBeacon);, (*14)

echo "disconnected beacon\n";, (*15)

The Versions

11/09 2017

v1.0.0.x-dev

1.0.0.9999999-dev

A simple PHP SDK to integrate the Physical Web platform Substance into any PHP project.

  Sources   Download

Rakete 7

The Requires

 

The Development Requires

by Ralph Cibis

11/09 2017

dev-master

9999999-dev

A simple PHP SDK to integrate the Physical Web platform Substance into any PHP project.

  Sources   Download

Rakete 7

The Requires

 

The Development Requires

by Ralph Cibis

11/09 2017

v1.0.0

1.0.0.0

A simple PHP SDK to integrate the Physical Web platform Substance into any PHP project.

  Sources   Download

Rakete 7

The Requires

 

The Development Requires

by Ralph Cibis