PHPackages                             leandroferreirama/google-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. leandroferreirama/google-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

leandroferreirama/google-auth
=============================

Biblioteca API para integração com o webservice do Google Calendar

v1.0.0(2y ago)022MITPHPPHP ^8.1

Since Jul 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/leandroferreirama/google-auth)[ Packagist](https://packagist.org/packages/leandroferreirama/google-auth)[ RSS](/packages/leandroferreirama-google-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Google Calendar Library Test
============================

[](#google-calendar-library-test)

[![Maintainer](https://camo.githubusercontent.com/fe06b3254e40341a07d1642e2f35973385bf3697d3493b8a6fbf5f5e1b2608d2/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406c65616e64726f66657272656972616d612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/leandroferreirama)[![Source Code](https://camo.githubusercontent.com/90080f7f2a5cb14bfb8f15f0d9f641718eed6232de4870d72c9e5d49afef1143/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6c65616e64726f66657272656972616d612f676f6f676c65254532253830253933617574682d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/leandroferreirama/google-auth)[![PHP from Packagist](https://camo.githubusercontent.com/9ea06cab07c17935d24e2021fcdff3cd8d1d0fb1de7637f4a76da16a29932e23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c65616e64726f66657272656972616d612f676f6f676c652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leandroferreirama/google-auth)[![Latest Version](https://camo.githubusercontent.com/f9a26cdb215f932bccbe9c38ceacfa42a09472c548c397160a6142e3d11fdf50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c65616e64726f66657272656972616d612f676f6f676c652d617574682e7376673f7374796c653d666c61742d737175617265)](https://github.com/leandroferreirama/google-auth/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/fd372424672ae4bf0f03a09c52936833e59ceb1b700251dbccdb583ee10dd635/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6c65616e64726f66657272656972616d612f676f6f676c652d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/leandroferreirama/google-auth)[![Quality Score](https://camo.githubusercontent.com/c4b5cc871602261f3425b63e013d15de01b83982f4337f2c09a599b7aa1dcc48/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c65616e64726f66657272656972616d612f676f6f676c652d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/leandroferreirama/google-auth)[![Total Downloads](https://camo.githubusercontent.com/393ea2636e6e85a86987c8a37c33690d00f8a28e94a3658cf367c8efd8ed1f94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616e64726f66657272656972616d612f676f6f676c652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleandroferreirama/google-auth)

###### Google Auth Library is a small set of classes developed for integration into the webservice of Google..

[](#google-auth-library-is-a-small-set-of-classes-developed-for-integration-into-the-webservice-of-google)

Google Auth Library é um pequeno conjunto de classes desenvolvidas para integração ao webservice do google.

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Abstraction of all API methods (Abstração de todos os métodos da API)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation
------------

[](#installation)

Uploader is available via Composer:

```
"leandroferreirama/google-auth": "^1.0"
```

or run

```
composer require leandroferreirama/google-auth
```

Documentation
-------------

[](#documentation)

###### For more details on how to use it, see an example folder in the component's directory. There will be an example of using the class.

[](#for-more-details-on-how-to-use-it-see-an-example-folder-in-the-components-directory-there-will-be-an-example-of-using-the-class)

###### It works in two steps: The first step consists of requesting the user's authorization using the link generated as shown below.

[](#it-works-in-two-steps-the-first-step-consists-of-requesting-the-users-authorization-using-the-link-generated-as-shown-below)

###### Put that link and an a tag in the href.

[](#put-that-link-and-an-a-tag-in-the-href)

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso da classe. O funcionamento está dividido em duas etapas: A primeira etapa consiste em solicitar a autorização do usuário usando o link gerado conforme demonstrado abaixo. Coloque esse link e uma tag a no href.

#### Generate url:

[](#generate-url)

```
