Download the PHP package mckenziearts/laravel-oauth without Composer

On this page you can find all versions of the php package mckenziearts/laravel-oauth. 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-oauth

Latest Version on Packagist Total Downloads Build Status Scrutinizer Code Quality StyleCI

Introduction

Social OAuth authentication for Laravel 5 which provides oAuth support in PHP 5.3+ and is very easy to integrate with any project which requires an oAuth client. This package use Laravel Socialite. For Laravel 4 look this package

Supported services

The library supports OAuth 2.0 compliant services. A list of currently implemented services can be found below. More services will be implemented soon.

Included service implementations:

Laravel Support version

Laravel laravel-oauth
<=5.5 ^1.0
6.0 ^1.1

Installation

  1. Include the package in your project using Composer

  2. Add the service provider to your config/app.php providers array:

    For Laravel 5.5.+ - you're done.

  3. Publish the Vendor Assets files by running:

  4. Now that we have published a few new files to our application we need to reload them with the following command:

Configuration

When you published the vendor assets you added a new file inside of your config folder which is called config/laravel-oauth.php. This file contains a bunch of configuration you can use to configure your connexion using social networks.

First, you have to add your service like is defined on The official documentation of Socialite available here. Just setup your Oauth services for your application. Laravel/socialite is automatically installed by this package.

Usage

  1. Fisrt of all in the config/laravel-oauth.php file you must define the default users table name to simplify migrations. By default users table is used

  2. Secondly you must specify the providers to use for social login in the providers array. To active a provider set the value to true

The last configuration is to stylize the button by editing class name and add or remove icon

Next, if you may want to re-publish the laravel-oauth assets, config, and the migrations run the following command:

  1. Next to make sure you have the latest database schema run:

  2. Inside of your master.blade.php file include a header yield. Inside the head of your master or app.blade.php add the following:

  3. Add the blade directive to your view where you want to display the socials buttons. The directive takes a parameter login to display the login text or resgister for the text related to the registration

  4. Add the style of the buttons by adding this to your view in the section in the @yield('css') who defined in your master layout

  5. In the Auth\LoginController of your application, add the OAuthSocialite trait:

With this feature you can overwrite the present methods on the trait if you want to customize them even more

  1. Add this routes to your default web route file

Change log

Please see the changelog.md for more information on what has changed recently.

Testing

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license.md for more information.


All versions of laravel-oauth with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5
laravel/socialite Version ^3.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 mckenziearts/laravel-oauth contains the following files

Loading the files please wait ....