Download the PHP package tecnozt/proteczt-client without Composer

On this page you can find all versions of the php package tecnozt/proteczt-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 proteczt-client

Proteczt Client

Packagist Version PHP Version

Laravel client package for Proteczt — a remote license management system. Install this package in your distributed Laravel applications to control access from a central Proteczt server.


Requirements

Dependency Version
PHP ^8.2
Laravel ^11.0 or ^12.0

Installation

Laravel auto-discovery registers the service provider automatically. No manual registration needed.


Configuration

1. Publish the config file

This creates config/proteczt.php in your application.

2. Add environment variables to .env

Get your API token: Login to your Proteczt server dashboard → API Tokens → Generate New Token.

3. Register the middleware

Apply license checking to your routes. In bootstrap/app.php (Laravel 11+):

Then in your routes:

4. Register your application

This sends your application details (name, domain, hostname) to the Proteczt server. This also happens automatically on the first web request if auto_register is enabled.


How It Works

  1. First boot: Service provider registers the app with Proteczt (stored in storage/app/.proteczt_registered).
  2. Every request: Middleware checks license status (cached for 1 hour by default).
  3. If active: Request passes through normally.
  4. If inactive/expired: Returns 403 with an error page (or JSON for API requests).
  5. If server is unreachable: Fail-open — request is allowed to prevent downtime.

Artisan Commands

Command Description
php artisan proteczt:register Register this app to Proteczt server
php artisan proteczt:register --force Re-register (overwrite existing)
php artisan proteczt:check Check license status (from cache)
php artisan proteczt:check --fresh Check status (bypass cache)
php artisan proteczt:refresh Force-refresh license cache

Controlling Your App from the Server

Once installed, you control the application entirely from the Proteczt dashboard:

Action Effect
Set status → Inactive App blocked within 1 hour (or immediately after proteczt:refresh)
Set status → Active App resumes within 1 hour
Set Expired At date App automatically blocked on that date
Delete client App unregistered — future check-status returns inactive

Facade


Publishing Views

To customise the "License Inactive" error page:

This copies the view to resources/views/vendor/proteczt/errors/license-expired.blade.php.


Configuration Reference

Key Env Variable Default Description
api_url PROTECZT_API_URL — Proteczt server URL (required)
api_token PROTECZT_API_TOKEN — Bearer token from Proteczt (required)
domain PROTECZT_DOMAIN null (auto) Override domain detection
auto_register PROTECZT_AUTO_REGISTER true Auto-register on first request
skip_local PROTECZT_SKIP_LOCAL true Skip check in local/testing env
cache_duration PROTECZT_CACHE_DURATION 0 Cache TTL in seconds (0 = no cache, real-time enforcement)
timeout PROTECZT_TIMEOUT 10 HTTP request timeout in seconds
verify_ssl PROTECZT_VERIFY_SSL true Verify SSL certificates

Security


Testing


Troubleshooting

Problem Solution
App not registering Check PROTECZT_API_URL and PROTECZT_API_TOKEN in .env
App always blocked Check client status in Proteczt dashboard
Stale status after change Run php artisan proteczt:refresh
SSL error in local Set PROTECZT_VERIFY_SSL=false (local only)
Skip not working Set PROTECZT_SKIP_LOCAL=true and APP_ENV=local

Changelog

See CHANGELOG.md.


License

MIT — see LICENSE.


Made with ❤️ by Tecnozt


All versions of proteczt-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
guzzlehttp/guzzle Version ^7.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 tecnozt/proteczt-client contains the following files

Loading the files please wait ...