Download the PHP package little-green-man/earhart without Composer

On this page you can find all versions of the php package little-green-man/earhart. 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 earhart

Earhart

A Laravel package that makes working with PropelAuth easier.

Primarily it helps your app use PropelAuth's OAuth flow to log users in via Socialite, and API integration to retrieve and manage user and organisation data.

Thanks to Laravel News for the artwork.

Features

Installation

1. Install the package via composer:

2. Configure PropelAuth

In your PropelAuth dashboard:

3. Set environment variables:

4. Configure services

Add PropelAuth configuration to config/services.php:

Optionally, publish Earhart's config file to customise caching and other settings:

This creates config/earhart.php where you can customise default values.

5. Update your database

Add these fields to your User model/migration:

6. Add authentication routes

Add the webhook route to routes/web.php:

Add the OAuth callback and logout routes to routes/web.php:

7. Register the Socialite provider

Add this to the boot method of your AppServiceProvider:

8. Add authentication links to your views:

Optionally, add links to PropelAuth's hosted pages:

Alternatively, implement these features in your own application using Earhart's API integrations.

Refreshing User Tokens

PropelAuth access tokens expire after 30 minutes. To keep user tokens fresh and prevent authentication failures, you should set up a scheduled job to refresh them automatically.

See docs/REFRESHING_USER_TOKENS.md for implementation details.

Registered Routes

The following routes are registered automatically:

Webhook Events

Create listeners in your application for these events:

Organization Events

User Events

Example Listener

PropelAuth API Usage

Use the PropelAuth API within your application:

See USING_PROPEL_API.md for complete API documentation.

Advanced Webhook Verification

The middleware shown in step 6 provides secure webhook verification out of the box.

For advanced webhook signature verification options (v1.4+), see ADVANCED_WEBHOOK_VERIFICATION.md.

Package Testing

Run the test suite:

Run only webhook tests:

Changelog

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

Contributing

Please see CONTRIBUTING.md for details.

Credits

License

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


All versions of earhart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0
illuminate/support Version ^11.0|^12.0
socialiteproviders/propelauth Version ^4.0
svix/svix Version ^1.81
spatie/laravel-data Version ^4.18
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 little-green-man/earhart contains the following files

Loading the files please wait ...