2017 © Pedro Peláez
 

library google

Safan module for Google Services

image

safan-lab/google

Safan module for Google Services

  • Saturday, August 29, 2015
  • by haroutweb
  • Repository
  • 2 Watchers
  • 0 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Safan Module for Google services

REQUIREMENTS

PHP > 5.4.0

SETUP

If you're using Composer for your project's dependencies, add the following to your "composer.json":, (*1)

"require": {
    "safan-lab/google": "1.*"
}

Update Modules Config List - safan-framework-standard/application/Settings/modules.config.php, (*2)

<?php
return [
    ...
    'Google' => 'vendor/safan-lab/google/Google'
    ...
];

Captcha

Add new config file with name - safan-framework-standard/application/Settings/google.config.php Official documentation - [Google reCaptcha][1], (*3)

<?php
return [
    'captcha' => [
        'siteKey'   => 'your_site_key',
        'secretKey' => 'your_secret_key'
    ]
];

For rendering captcha you can use Safan Object Manager, (*4)

<?= \Safan\Safan::handler()->getObjectManager()->getInstance('Google\Google')->getService('captcha')->render() ?>

For checking data, (*5)

getObjectManager()->getInstance('Google\Google')->getService('captcha');
    $response = $googleCaptchaService->check($captchaField);

    if($response['status'] === false)
        return $response['message'];
?>

The Versions

29/08 2015

dev-master

9999999-dev http://www.safanlab.com

Safan module for Google Services

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

authentication captcha google map google plus

29/08 2015

1.0.0

1.0.0.0 http://www.safanlab.com

Safan module for Google Services

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

authentication captcha google map google plus