2017 © Pedro Peláez
 

library injam-laravel-package

Injam.io Laravel Package

image

injamio/injam-laravel-package

Injam.io Laravel Package

  • Thursday, May 31, 2018
  • by injam
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Injam Laravel Package

Build Status styleci Scrutinizer Code Quality SensioLabsInsight Coverage Status, (*1)

Packagist Packagist Packagist, (*2)

"Injam" is a Next Generation Real-Time Machine that provides a set of Geolocation, Geospatial, Messaging and Streaming services in fast (almost-teleporting) and secure way. So this Package enables you to interact with them easily from server side., (*3)

Installation

Install via composer, (*4)

composer require injamio/injam-laravel-package

Register Service Provider

Note: This and next steps are optional if you use Laravel >= 5.5 with package auto discovery feature., (*5)

Add service provider to config/app.php in providers section, (*6)

Injamio\InjamLaravelPackage\ServiceProvider::class,

Register Facade

Register package facade in config/app.php in aliases section, (*7)

'Injamio' => Injamio\InjamLaravelPackage\Facades\InjamLaravelPackage::class,

Publish Configuration File

php artisan vendor:publish --provider="Injamio\InjamLaravelPackage\ServiceProvider" --tag="config"

API Key

Add INJAM_API_KEY to your .env file:, (*8)

INJAM_API_KEY=YOUR_INJAM_API_KEY

Here you can find you application api key., (*9)

Usage

Use package in your controller:, (*10)

use Injamio\InjamLaravelPackage\InjamLaravelPackage;

Create instance of InjamLaravelPackage class:, (*11)

$injam = new InjamLaravelPackage;

Add Tracker:

$tracker = $injam->addTracker(TRACKING_PHYSICAL_ID, TRACKER_MOBILE);

Example:, (*12)

$tracker = $injam->addTracker('zxcvbn', '09123456789');

Add Geofence webhook:

$hook = $injam->addGeoFenceWebhook(OBJECT_TYPE, PHYSICAL_ID, TARGET_POINT, RADIUS_IN_METERS, ENDPOINT, DETECT_EVENTS);

Example:, (*13)

$hook = $injam->addGeoFenceWebhook('bike', 'zxcvbn', '35.7384336,51.4026536', 60, 'https://api.example.com/v1/do/action', 'enter,exit');

The Versions

31/05 2018

dev-master

9999999-dev

Injam.io Laravel Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Soroush Khosravi

laravel package injam injam.io

31/05 2018

0.2

0.2.0.0

Injam.io Laravel Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Soroush Khosravi

laravel package injam injam.io

21/05 2018

0.1

0.1.0.0

Injam.io Laravel Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Soroush Khosravi

laravel package injam injam.io