PHP code example of emanueleminotto / hwi-oauth-bridge
1. Go to this page and download the library: Download emanueleminotto/hwi-oauth-bridge 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/ */
emanueleminotto / hwi-oauth-bridge example snippets
namespace AppBundle;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table
*/
class Example
{
use \EmanueleMinotto\HwiOauthBridge\Traits\Entity\FacebookTrait;
/**
* @ORM\Column(type="integer")
* @ORM\Id
*/
private $id;
// ...
}
$example = new AppBundle\Example();
$example->setFacebookEmail('[email protected]');
$em->persist($example);
$em->flush();
echo $example->getFacebookEmail(); // [email protected]