Download the PHP package jaredclemence/laravel_google_calendar_api without Composer

On this page you can find all versions of the php package jaredclemence/laravel_google_calendar_api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel_google_calendar_api

= Google Calendar Api for Laravel =

== Installing ==

Use composer to include this in your laravel package. From the base directory of your laravel 5 program, use the following command:

composer require jaredclemence/laravel_google_calendar_api

== Use ==

This package uses the namespace JRC\Google\Calendar. All classes will be in this namespace.

Prior to using this package,

  1. Register your application with Google
  2. Create an OAuth 2.0 credential for your application
  3. Download your application credentials as a json file and put a relative path reference to your json file in your .env file (This service will tell you the appropriate name of the env variable name in an exception, so just put it anywhere for now, and then change the variable name after you receive the error.)

=== Obtain an Auth Code ===

After including the composer autoloader, you will be able reference the CalendarAuthController. Start by instantiating an instance of this class. Call the method getAuthUrl() to generate a redirect URL for your program. You will receive errors indicating which fields need to be set in your .env file.

Send the user to that URL by passing back a redirect( $url ) value from your controller method.

For example:

Let us assume that we have set up the following route:

Route::get( '/google/auth', 'MyController@redirectUser' );

Then in our controller, we will have the following method:

class MyController extends Controller{
    ...
    public function redirectUser(){
        $authController = new JRC\Google\Calendar\CalendarAuthController();
        $uri = $authController->getAuthUrl();
        return redirect( $uri );
    }
    ...
}

This will pass your user to the Google Auth view, where your user will grant your application permissions.

Google will call your program back at the URI you specify in your application's registration. (Don't worry if you picked a bad URI, you can always update this in your Google account and download a new JSON file.)

Further edits are being made to this file


All versions of laravel_google_calendar_api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
fideloper/proxy Version ^4.0
google/apiclient Version ^2.2
laravel/framework Version 5.6.*
laravel/tinker Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jaredclemence/laravel_google_calendar_api contains the following files

Loading the files please wait ....