Download the PHP package kregel/laravel-flight without Composer

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

Stop publishing apps with public horizon access.

Secure your apps easily with Laravel Socialite and OAuth. Install this package, configure a few env values, a config/services.php entry, and then login. Never leave your apps unprotected.

Latest Version on Packagist Total Downloads

Streamline your Authentication even further. Integrate with your own internal Laravel Passport instance and enable your users to login however they need to.

Stop dealing with setting up a /login redirect and /callback. Not all apps need their own auth system. Sometimes we just want to login with an existing platform like Github, Auth0, or even a custom Laravel Passport instance. While this still does have it's own user's table, it's largely used for tracking social users.

Ok but why?

Because there are Laravel tools out there that don't come with authentication, but require it to be able to secure them for production access.

This package let's you grab your favorite Github, Google, or other supported OAuth provider's credentials, set them in your env, visit http://yoururl/flight/login and login. You should be redirected to the auth provider you chose as your FLIGHT_DRIVER, and you will then be redirected to FLIGHT_LOGIN_REDIRECT.

Users that don't exist at the time of the request will be created unless you explicitly disable registration with an env var (so turn it off after you registery) FLIGHT_ALLOW_REGISTRATION

Installation

You can install the package via composer:

Publish the config

Find a socialite provider you wish to use

Add their ExtendSocialite event to our config file under the community_drivers section, and if you wish to make it your primary driver, set your FLIGHT_DRIVER

Post setup

You'll want to verify that you have your web middleware configured. And you'll want the auth middleware too, so Laravel will redirect you to your auth provider.

If you're reading a headless type of system and have removed those middlewares here's basically the same stuff.

In your app/Http/Kernel.php the web middleware would basically be

And under the $middlewareAliases portion you can add the following replacement for App\Http\Middleware\Authenticate

Both of the above middleware are almost directly taken from the base Laravel app, with minor adjustments for configuration.

Integrating new socialite providers

To add a new authentication provider to your app, you'll need to composer require their package into your app, then add their ExtendSocialite listener to the community_drivers page. Once the driver has been added, you'll need to open your config/services.php file and add the following equivalent for your driver . Replacing driver_name and DRIVER_NAME with your actual driver.

If your preferred driver is github, then it'll look like this:

Lastly, change your FLIGHT_DRIVER env var to your preferred driver.

And visit http://yourwebsite/flight/login

If you haven't already set up the redirect url or callback url http://yourwebsite/flight/callback

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of laravel-flight with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/socialite Version ^5.6
socialiteproviders/laravelpassport Version ^4.0
socialiteproviders/manager Version ^4.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 kregel/laravel-flight contains the following files

Loading the files please wait ....