Download the PHP package virgantara/unida-apps-support without Composer

On this page you can find all versions of the php package virgantara/unida-apps-support. 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 unida-apps-support

๐Ÿš€ UNIDA Apps Support Components for Yii2

License PHP Yii2

A reusable Yii2 component package for UNIDA Gontor applications. This package provides helper components for OAuth2 authentication, token handling, user session integration, and application jump support between UNIDA apps.


๐Ÿ“ฆ Features


โš ๏ธ Security Notice

This package must use OAuth2 Authorization Code Flow for authentication and app jumping.

Do not send access_token or refresh_token through URL query parameters.

Bad example:

Recommended flow:


๐Ÿ“‹ Requirements


โš™๏ธ Installation

1. Add Repository to composer.json

2. Add Package Requirement

For development branch:

For stable release tag:

Then run:

Or install directly:


๐Ÿ”ง OAuth Configuration

Add this configuration to params.php or params-local.php.

Example:


๐Ÿงฉ Yii2 Component Configuration

Open config/web.php, then add the components below.


๐Ÿ” Start SSO Login

Add this action to your SiteController.


๐Ÿ” OAuth Callback

Add this callback action to your SiteController.

Add the exception handler:


๐Ÿงญ App-to-App Jump

This package supports Google-like app jumping.

Example:

The source app should only open the target app login endpoint:

The target app will then start its own OAuth2 flow.

Correct flow:

The source application must not generate OAuth state for the target application.


๐Ÿ“ฑ Allowed Apps List

You can render allowed applications from SSO using:

Example usage in layout or menu:

The SSO /app/list endpoint should return data like this:

Or preferably:


๐Ÿšช Logout

Recommended logout flow:

Example:


๐Ÿท๏ธ Release Tag Procedure

Use semantic versioning for releases.

Format:

Examples:

1. Check Current Branch

Switch to master or main branch:

or:

2. Pull Latest Changes

or:

3. Check Git Status

Make sure there are no uncommitted changes.

4. Commit Changes

Skip this step if all changes have already been committed.

5. Create Git Tag

6. Push Commit and Tag

If using master:

If using main:

Or push all tags:

7. Verify Tag

Or check remote tags:


๐Ÿ“ฆ Using a Release Tag in Yii2 App

After creating a release tag, update the Yii2 app composer.json.

Then run:

For a specific version:

Then:


๐Ÿ”„ Updating Release Version

For bug fixes:

For new backward-compatible features:

For breaking changes:


๐Ÿงน Removing a Wrong Tag

Remove local tag:

Remove remote tag:

Create the corrected tag again:


๐Ÿงช Testing Package Installation Locally

In a Yii2 application:

Check installed version:


๐Ÿ“ Suggested Package Structure


๐Ÿงพ Example Package composer.json

If your component files are placed directly under:

then use:


โœ… Recommended Release Checklist

Before creating a new tag:


๐Ÿ“„ License

This package is open-sourced under the MIT license.


All versions of unida-apps-support with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
yiisoft/yii2 Version *
firebase/php-jwt Version 7.0.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 virgantara/unida-apps-support contains the following files

Loading the files please wait ...