GithubHelp home page GithubHelp logo

oeleco / larasuite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coloredcow/laravel-gsuite

0.0 0.0 0.0 76 KB

A Laravel package to setup GSuite Admin SDK.

License: MIT License

PHP 100.00%

larasuite's Introduction

Larasuite

A Laravel package to setup GSuite Admin SDK.

Installation

You can install the package using composer

composer require oeleco/larasuite

Publish the configurations

php artisan vendor:publish --provider="oeleco\Larasuite\Providers\GSuiteServiceProvider" --tag="config"

Setting up GSuite Admin Service

In your .env file, add the following credentials:

GOOGLE_APPLICATION_CREDENTIALS=your_gsuite_service_account_crendentials
GOOGLE_SERVICE_ACCOUNT_IMPERSONATE=your_gsuite_admin_email

To know more about service account and steps to get one, visit the official Google Documentation.

NOTE: Make sure you enable Domain-wide Delegation when creating the service account for your project.

You can now use various services provided by the package. For example, if you want to fetch a user details, you can use the GSuiteUserService facade.

use oeleco\Larasuite\Facades\GSuiteUserService;

// ...

$user = GSuiteUserService::fetch('[email protected]');

echo $user->getName(); // Jon Snow

Forked from ColoredCow/laravel-gsuite.

larasuite's People

Contributors

oele-dev avatar pankaj-ag avatar rathorevaibhav avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.