2017 © Pedro Peláez
 

symfony-bundle bvi-googleplus

Google plus signin and singup features

image

kapilpatel20/bvi-googleplus

Google plus signin and singup features

  • Thursday, August 31, 2017
  • by kapilpatel20
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

*******Documentation********, (*1)

### Step1 : create google plus client id from https://console.developers.google.com/apis/credentials, (*2)

### Step2 : Run below command to install from composer, (*3)


composer require kapilpatel20/bvi-googleplus dev-master

Add bundle in AppKernel.php in registerBundles function, (*4)



new FOS\UserBundle\FOSUserBundle(), new GplusBundle\GplusBundle(),

Step3 : General Settings

3.1 app/config/config.yml, (*5)


imports: - { resource: '@GplusBundle/Resources/config/services.yml' } parameters: google_client_id : YOUR_GOOGLE_CLIENT_ID google_client_secret : YOUR_GOOGLE_SECERT google_client_domain : YOUR_DOMAIN_PATH google_client_redirect : REDIRECT_URI/gplus/ google_client_after_login_redirect : REDIRECT_URI_POST_LOGIN fos_user: db_driver: orm # other valid values are 'mongodb' and 'couchdb' firewall_name: main user_class: GplusBundle\Entity\User in Global Settings param twig: globals: google_url: 'https://accounts.google.com/o/oauth2/auth?redirect_uri=%google_client_domain%%google_client_redirect%&response_type=code&client_id=%google_client_id%&scope=https://www.googleapis.com/auth/plus.login+https://www.googleapis.com/auth/userinfo.email&access_type=offline'

3.2 app/config/security.yml, (*6)


security: encoders: FOS\UserBundle\Model\UserInterface: bcrypt providers: chain_provider: chain: providers: [fos_userbundle] fos_userbundle: id: fos_user.user_provider.username_email

3.3 app/config/routing.yml, (*7)


gplus: resource: "@GplusBundle/Resources/config/routing.yml" prefix: /gplus/

Step4: Add Google plus button in html twig file


<a href="{{ google_url }}">Connect with Google</a>

Step5: Generate tables with following command


php app/console doctrine:schema:update --force

The Versions

31/08 2017

dev-master

9999999-dev https://github.com/kapilpatel20/bvi-googleplus

Google plus signin and singup features

  Sources   Download

proprietary

The Requires

 

by Viral Champanery

google plus