Download the PHP package flipboxfactory/patron without Composer

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

An OAuth2 client manager for Craft CMS

Join the chat at https://gitter.im/flipboxfactory/patron Latest Version Build Status Coverage Status Quality Score Total Downloads

Patron is an OAuth2 client manager; Providing an easy to use interface for managing OAuth2 providers and tokens.

Requirements

This plugin requires Craft CMS 3.0 or later.

Installation

Choose one of the following ways to add Patron to your project:

  1. Composer:

    Simply run the following command from your project root:

  2. Craft CMS Plugin Store:

    Within your Craft CMS project admin panel, navigate to the 'Plugin Store' and search for 'Patron'. Installation is a button click away.

Once the plugin is included in your project, navigate to the Control Panel, go to Settings → Plugins and click the “Install” button for Patron.

Features

Patron provides an Craft CMS admin interface for The PHP League's OAuth2 client package. Additional features include:

Templating

The craft.patron template variable provides access to the entire Patron plugin. However, there are two useful tags worth highlighting:

Retrieving providers:

Retrieving tokens:

Screenshots


Settings

The settings (including provider configurations) can be overridden with the plugins configuration file: config/patron.php

It's recommended that sensitive data (such as the client secret) is accessed via environmental variables:

Third Party Providers

Adding addition providers to Patron is handled through the following events:

  1. Register a compatible The PHP League OAuth2 provider using a fully qualified class name. The PHP League has an extensive list that have been contributed by the community.

  2. [Optional] Register a settings interface for the Provider. If your provider can be configured, the settings interface will enable configuration inputs via the Craft CP. The settings interface will be registered on the same provider class in step 1.

  3. [Optional] Register additional info for the Provider. Throughout the Craft CP we use a provider name and icon. Register the following in order to specify these values:

As an example, here are a few third-party provider packages to reference:

Provider Locking

A provider can be 'locked' by a plugin. As a result, only the plugin (that locked it) can delete the provider. This is useful when another plugin is using Patron to manage it's OAuth2 connections, which may not be apparent.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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


All versions of patron with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
craftcms/cms Version ~4.0
flipboxfactory/craft-ember Version ^3.0
league/oauth2-client Version ^2.4
league/oauth2-facebook Version ^2.0
league/oauth2-github Version ^2.0
league/oauth2-google Version ^2.0
league/oauth2-instagram Version ^2.0
league/oauth2-linkedin Version ^2.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 flipboxfactory/patron contains the following files

Loading the files please wait ....