Download the PHP package ssofy/laravel without Composer

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

9in for Laravel

Sign users in to your Laravel app with 9in, protect your API with 9in access tokens, and receive verified webhooks.

Requires PHP 8.1+ and Laravel 10, 11, 12 or 13 (Laravel 13 itself needs PHP 8.3+).

Setup

Create an application in the 9in console (Applications → New → Regular web app) with the redirect URL https://your-app.com/nine/callback and the logout URL https://your-app.com/, then:

The issuer must use https://; plain http is accepted for localhost and *.localhost (set NINE_ALLOW_INSECURE_ISSUER=true for other development hosts). Publish the config with php artisan vendor:publish --tag=nine:config to change routes, scopes or caching.

Protect pages

Middleware Signed out
nine 401 JSON
nine:redirect Browsers go to the 9in login and come back; API requests get 401
nine:passive Continue; auth('nine')->user() is null
nine.scope:orders:read,orders:write 403 unless the bearer token has every scope (after nine)

The nine guard is registered automatically (auth('nine')); nine middleware also makes it the default guard for the request.

Using your own users table

Add a column holding the 9in user id (nine_id) and point the guard at your provider in config/auth.php:

auth()->user() is then your Eloquent user (null until you link one, e.g. in a UserCreated webhook listener or on first sign-in using auth('nine')->claims()).

Protect your API

Tokens must be issued for nine.api.audience (NINE_API_AUDIENCE, defaults to NINE_AUDIENCE). Nine::verifyAccessToken($token, ['scope' => …]) does the same by hand.

Webhooks

Create an endpoint in the console (Advanced → Webhooks) for https://your-app.com/nine/webhook and set its signing secret:

Verified events (signature over the raw body and path, at most five minutes old) are dispatched as 9in/laravel-events classes:

The raw payload ($event->event) is {id, event_type, created_at, tenant, environment, data}, and data.user is the user the event is about.

Each event is dispatched once: retries and redeliveries of a processed event id are answered 204 without dispatching again, and a retry that arrives while the first delivery is still running gets 409 (9in tries again later). If a listener throws, the id is released and 9in retries. Ids are kept for 3 days in the nine.cache.store cache; use a shared store (redis, database) when you run several servers. Turn it off with nine.webhook.dedupe.

To receive webhooks on a different route, use the nine.webhook middleware there and read $request->attributes->get('nine.webhook').

Management API

The application needs management scopes. Set NINE_MANAGEMENT_CLIENT_ID / NINE_MANAGEMENT_CLIENT_SECRET to use a separate machine-to-machine application.

Keeping users in your own database instead? Add 9in/laravel-server.

Tests

License

The MIT License (MIT). See Cubelet Ltd.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
laravel/framework Version ^10.0 || ^11.0 || ^12.0 || ^13.0
9in/php-sdk Version ^4.0
9in/laravel-events Version ^3.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 ssofy/laravel contains the following files

Loading the files please wait ...