Download the PHP package trikoder/oauth2-bundle without Composer

On this page you can find all versions of the php package trikoder/oauth2-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.


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.

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 oauth2-bundle

Trikoder OAuth 2 Bundle

Build Status Latest Stable Version License Code coverage

Symfony bundle which provides OAuth 2.0 authorization/resource server capabilities. The authorization and resource server actors are implemented using the thephpleague/oauth2-server library.

Important notes

This bundle provides the "glue" between thephpleague/oauth2-server library and Symfony. It implements thephpleague/oauth2-server library in a way specified by its official documentation. For implementation into Symfony project, please see Symfony security documentation.

Status ⚠️

Active development is currently on hold, as this repository is in progress of migrating to the thephpleague/oauth2-server-bundle project.

The current repository will be discontinued whenever the v1.0 release is ready in oauth2-server-bundle. See this comment for more information.




  1. Require the bundle and a PSR 7/17 implementation with Composer:

    If your project is managed using Symfony Flex, the rest of the steps are not required. Just follow the post-installation instructions instead! :tada:

    NOTE: This bundle requires a PSR 7/17 implementation to operate. We recommend that you use nyholm/psr7. Check out this document if you wish to use a different implementation.

  2. Create the bundle configuration file under config/packages/trikoder_oauth2.yaml. Here is a reference configuration file:

  3. Enable the bundle in config/bundles.php by adding it to the array:

  4. Update the database so bundle entities can be persisted using Doctrine:

  5. Import the routes inside your config/routes.yaml file:

You can verify that everything is working by issuing a POST request to the /token endpoint.

❮ NOTE ❯ It is recommended to control the access to the authorization endpoint so that only logged in users can approve authorization requests. You should review your security.yml file. Here is a sample configuration:



Please see CONTRIBUTING for details.


This project adheres to Semantic Versioning 2.0.0. Randomly breaking public APIs is not an option.

However, starting with version 4, we only promise to follow SemVer on structural elements marked with the @api tag.


All the package releases are recorded in the CHANGELOG file.

Reporting issues

Use the issue tracker to report any issues you might have.


See the LICENSE file for license rights and limitations (MIT).

All versions of oauth2-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ajgarlag/psr-http-message-bundle Version ^1.1
doctrine/doctrine-bundle Version ^2.4.3
doctrine/orm Version ^2.10
league/oauth2-server Version ^8.5.1
psr/http-factory Version ^1.0
symfony/framework-bundle Version ^4.4.30|^5.4
symfony/psr-http-message-bridge Version ^2.0
symfony/security-bundle Version ^4.4.30|^5.4
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 trikoder/oauth2-bundle contains the following files

Loading the files please wait ....