Download the PHP package zhylon/zhylonid-service without Composer

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

ZhylonID Service

Server-to-server Laravel client for the ZhylonID identity API. Lets any Zhylon-ecosystem product check whether a ZhylonID account already exists for an email address, and sync local users against ZhylonID via the client_credentials grant.

This package only talks to ZhylonID's internal API (service-to-service). It is not an OAuth2 login/SSO integration for end users — for "Login with ZhylonID" use zhylon/zhylon-auth instead.

Installation

Laravel's package auto-discovery registers the service provider and ZhylonId facade automatically. Publish the config file:

Configuration

Set the following in your app's .env — never commit real values:

Credentials are issued per product in the ZhylonID admin panel with least-privilege scopes — request only internal.read if you never call getSyncUsers().

Usage

Via dependency injection (preferred — code against the contract, not the concrete class):

Or via the facade:

The package intentionally does not ship a Fortify RegisterController. Registration flows are app-specific (Fortify, Breeze, custom) — wire ZhylonIdServiceContract::userExists() into your own controller as shown above, per the Contract/Provider pattern in TECH_STACK.md.

Syncing users

Finds local users where zhylonid-service.sync.id_column (default zhylon_id) is null, pushes them to ZhylonID, and backfills the returned remote ids. Requires the configured zhylonid-service.sync.user_model to expose id, name, email, and the id column.

Security

See SECURITY.md for the vulnerability disclosure process, and note:

Testing

License

MIT — see LICENSE.


All versions of zhylonid-service with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.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 zhylon/zhylonid-service contains the following files

Loading the files please wait ...