Download the PHP package fei/connect-package without Composer

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

Connect Package

This package provide Connect Client integration for Objective PHP v2 applications.

With the Connect Package, your Objective PHP application integrate the SAML standard protocol and can act as a Service Provider.

Installation

Connect Package needs PHP 7.0 or up, with the extension openssl plugged to run correctly.

You will have to integrate it to your Objective PHP project with composer require fei/connect-package

Integration

In order to work properly, Connect-Package must be register in your Application.

By registering Connect-Package, your application will gain:

Connect Services

Connect-Package exposes 3 services (see configuration section for service name purpose):

Injectors

Injectors is an great feature of Objective-PHP services factory. With injectors, your services will be injected in the right dependency by the services factory. Here below an example:

By implementing Fei\Service\Connect\Package\UserAwareInterface, services factory will inject into your service the current instance of Connect-User service thanks to injectors.

Connect-Package register 2 injectors:

Mostly, you will prefer to inject Connect-User service. In this way, you will decrease the coupling of your service layer with Connect-Client.

Disable Connect behaviours and Mocked User

You can disable the Connect middlewares and so disable Connect behaviour. It's commonly used in development environment (Connect-IDP is not installed for example).

If you disable Connect middleware, Connect-Package will replace Connect-User instance by a mocked Connect-User instance you could configure.

In this way, your application will work as if it's wired to Connect-IDP.

Configuration

Connect-Package look like below:

key Description Default Mandatory
enable Enable connect client behaviours true yes
name Application name (set to entityId if null) null no
entity_id Service Provider entity id (must be an URL) null yes
idp_entity_id Identity Provider entity id (must be an URL) null yes
client_service_id Connect-Client service id connect.client yes
config_service_id Connect-Client service id connect.config yes
user_service_id Connect-Client service id connect.user yes
mock_user Connect-User service mocked when enable is false null yes when enable is false
default_target_path Target path where the user is redirected after logging in / yes
logout_target_path Target path where the user is redirected after logging out / yes
profile_association_path Profile association pathinfo endpoint /connect/profile-association yes
profile_association_service_id Service id for profile association callback null no
saml_metadata_basedir Path of the SAML metadata (relative to project root) app/config/Saml/metadata yes
sp_metadata_file SP metadata file name sp.xml yes
idp_metadata_file SP metadata file name idp.xml yes
idp_metadata_file_target IDP metadata pathinfo /idp.xml yes
private_key_file_path SP private key file path (relative to project root) app/config/key/sp.pem yes
admin_path_info Administrative pathinfo endpoint /connect/admin yes
allowed_roles User current roles allowed ['USER'] yes
filters Services id for middleware filter [] yes

Final word on filters

Yes, yes, after this point your will be ready to use Connect-Package and enjoy with Objective-PHP.

So filters...

Filters is a way to activate or not Connect middlewares. There are the same effect that enable option but with the execution context (like disable Connect for API call for example).

A filter is a class that implement ObjectivePHP\Filter\FilterInterface and when it's run by the package, it's decide if the Connect middlewares must be register or not.

Before use filters you must register into services factory the your filters descriptions.


All versions of connect-package with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-openssl Version *
objective-php/application Version ^2.0
objective-php/config Version >= 2.0 < 2.0.2
fei/connect-client Version ^4.3.2
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 fei/connect-package contains the following files

Loading the files please wait ....