Download the PHP package irongate/chief without Composer

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

Chief Tools SDK

Total Downloads Monthly Downloads Latest Stable Version License

Base functionality and helpers used for building Chief Tools.

Keep in mind that this package is not meant to be used standalone, but as a base for building our own Chief Tools, this package is open-sourced for inspiration and to be used as a reference.

Configures

Provides

Middleware

Validation rules

Helpers

Installation

Start with requiring the package:

Publish the configuration files and optionally the migrations:

Run the app migrations to create the users table:

Add the Chief service to the config/services.php:

That's all, you should be able to authenticate against Account Chief.

Outbound webhooks

Apps send signed webhooks to the endpoints their teams add. The SDK stores events, delivers and retries them, and ships the settings pages, the REST API and the e-mails. An app only declares its events and calls them where things happen.

Add webhooks to an app

  1. List the events as a backed enum implementing ChiefTools\SDK\Webhook\Outbound\Contracts\WebhookEventType, with #[WebhookObject] and #[WebhookData] on each case so the OpenAPI document describes the payloads.
  2. Enable them in config/chief.php. Only set what differs from the defaults in WebhookConfig, the User-Agent defaults to the app name, like BackupChief-Webhooks/1.0:

  3. Give the queue its own Horizon supervisor with tries set to 1, the SDK schedules retries on the delivery itself.
  4. Extend ChiefTools\SDK\Webhook\Outbound\EventSender with one method per event that renders the API resource and calls send(). Call those methods from the code that makes the change, before any e-mail about it.
  5. Register the pages with Route::chiefWebhooks('settings/webhooks') in the team route group and the API with Route::chiefWebhooksApi('<app>:webhooks'). Add the <app>:webhooks:read and <app>:webhooks:write scopes and the webhooks capability to the app in Account Chief.
  6. Put <x-chief::webhooks.settings-card :team="$team" description="..." /> on the settings page, with a class for the spacing between the page's cards.
  7. Listen for EndpointFailing and EndpointDisabled and send ChiefTools\SDK\Webhook\Outbound\Mail\EndpointFailing or EndpointDisabled to the team members whose notification preferences want it, with an idempotency key per endpoint and failure.
  8. Test with ChiefTools\SDK\Webhook\Outbound\Testing\Webhooks::subscribe($team) and Webhooks::sent().

Event conventions

Receivers often handle events from several apps, so events with the same meaning look the same everywhere.

GraphQL API

You will need to create a routes/graphql/schema.graphql in your own project with the following contents:

Anything you want to add the the schema you can do thereafter, for example:

Keep in mind that the User type is already provided so you will need to extend that if you want to append fields.


All versions of chief with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
guzzlehttp/guzzle Version ^8.0
laracasts/utilities Version ^3.2
laravel/framework Version ^12.58|^13.7
laravel/helpers Version ^1.7
laravel/socialite Version ^5.20
mll-lab/graphql-php-scalars Version ^6.4
mlocati/ip-lib Version ^1.22
nuwave/lighthouse Version ^6.66
pusher/pusher-php-server Version ^7.2
sentry/sentry-laravel Version ^4.15
stayallive/laravel-eloquent-observable Version ^1.1
stayallive/laravel-eloquent-uuid Version ^1.0
stayallive/random-tokens Version ^1.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 irongate/chief contains the following files

Loading the files please wait ...