emanueleminotto / hwi-oauth-bridge
Missing bridge between the HWIOAuthBundle and your Symfony 2 project.
1.0.1
2016-04-10 19:06 UTC
Requires
- php: >=5.4
- hwi/oauth-bundle: ^0.4@dev || ^0.5@dev
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.0
- scrutinizer/ocular: ^1.1
This package is auto-updated.
Last update: 2024-10-28 07:49:41 UTC
README
Missing bridge between the HWIOAuthBundle and your Symfony 2 project.
Install
Via Composer
$ composer require emanueleminotto/hwi-oauth-bridge
Usage
To use one or more of included traits add them to your entities:
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; // ... }
And all related methods will be available throught the trait, so:
$example = new AppBundle\Example(); $example->setFacebookEmail('user@example.com'); $em->persist($example); $em->flush(); echo $example->getFacebookEmail(); // user@example.com
Doctrine 2 ORM are available under the folder Entity and Doctrine ODM under the Document folder.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email minottoemanuele@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.