Download the PHP package sulaimanmisri/easy-login without Composer

On this page you can find all versions of the php package sulaimanmisri/easy-login. 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 easy-login

Easy Login for Laravel Application

Easy Login is a Laravel package designed to simplify OAuth authentication using Laravel Socialite. It provides pre-built success/failed mechanism, routes and streamlined configuration to integrate third-party OAuth providers effortlessly.

Installation

  1. Install the package via Composer

  2. Run the installation wizard:

  3. Configure your OAuth credentials in .env. Example:

[!IMPORTANT] You should only change the {provider} name to the specific provider that you choose. For example, if you choose Facebook, then your Redirect URL should be: /auth/facebook/callback

That's it for the installation. You can use it in your application right now.

Usage

You can modify the post-login redirect paths in the config/easy-login.php file:

After you finish the installation and modify the easy-login config, you can use the pre-defined route in your own html button. Like this :

or

List of pre-defined Route Names

Auth Session

This package comes with Success and Failed login mechanisms. When a user tries to login via any selected Social Login and their email is not found in your DB, they will be redirected to the path set in the config, where you can display a custom message.

You can change the Success and Failed Messages by modifying the error value inside the config/easy-login.php file:

Example:

Key Features

1. Seamless Integration with Laravel Socialite

Easily connect your application to providers like GitHub, Google, and more through Laravel Socialite.

2. Simple Configuration

Manage OAuth providers in a single configuration file.

3. Pre-Built Routes

Automatically provides routes for:

4. Customizable Behavior

Extend or override the config data or callback logic easily using the CallbackServices class.

Contributing

Feel free to contribute to this package by submitting issues or pull requests. Follow the standard coding guidelines for consistency.

Developer Customization

You might want to use Easy Login as your primary Social Login, but the provider is not there. You can contribute to this Package too! By default, you need to follow other Provider Redirection inside the EasyLoginController.

But, if you find that the provider you want is not supported by Laravel Socialite by default, you can create a custom Controller by naming the file like so : EasyLoginForWhatProviderNameController. Change the WhatProviderName to your own provider name. Eg : EasyLoginForMySpaceController

Then, create a Service file inside the Services and follow the naming convention. Like so : YourProviderServices.

To use the EasyLoginServices interface, implement it in your services class and provide concrete implementations for the required methods. Your services must implement the EasyLoginServices.

Coding Standards

To maintain consistency and quality across the codebase, please adhere to the following coding standards when contributing to this project.

1. Strict Typing

2. Namespace and Class Naming

3. Method Naming

4. Comments and Documentation

5. Commit Messages

Final Notes

By following these coding standards, we can ensure that the codebase remains clean, consistent, and easy to maintain. If you have any questions or need clarification, feel free to open an issue or reach out to the maintainers.


All versions of easy-login with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
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 sulaimanmisri/easy-login contains the following files

Loading the files please wait ....