Download the PHP package smskin/myhouse-identity-service-client without Composer

On this page you can find all versions of the php package smskin/myhouse-identity-service-client. 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 myhouse-identity-service-client

About Identity service library

This library based on https://github.com/smskin/laravel-identity-service-client library.

Identity service is a service that allows you to organize authorization in a laravel application through a common remote server. This allows you to organize a multi-service architecture with end-to-end authorization.

Identity service library consists of 2 parts:

Installation

  1. Run composer require smskin/myhouse-identity-service-client
  2. Run php artisan vendor:publish --tag=identity-service-client
  3. Configure identity service client with identity-service-client.php in config folder and environments
  4. Change create user table migration file
  5. Run php artisan migrate

Migrations

User will be creating automatically if user open site with correct jwt. You must change users table for support nullable fields.

I usually remove all columns except id and dates because they are not needed (authorization happens through a remote server). For example:

Environments

  1. IDENTITY_SERVICE_CLIENT_HOST - public address of identity service (https://github.com/smskin/laravel-idenity-service)
  2. IDENTITY_SERVICE_CLIENT_DEBUG - debug mode of auth gates

Configuration

You can configure library with identity-service-client.php file.

Example of Users model:

Using

This library register 2 guards:

You can use it with auth middleware (for example: auth:identity-service-client-jwt) or bind it's to already exists guards by auth.php config file.

For example:


All versions of myhouse-identity-service-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-sync Version *
laravel/framework Version ^8 || ^9 || ^10
guzzlehttp/guzzle Version ^7.0
smskin/laravel-support 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 smskin/myhouse-identity-service-client contains the following files

Loading the files please wait ....