Download the PHP package perfbase/codeigniter4 without Composer

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

Perfbase

Perfbase for CodeIgniter 4

CodeIgniter 4 integration for Perfbase.

Packagist Version License CI PHP Version CodeIgniter Version

This package is a thin adapter over perfbase/php-sdk. It wires CodeIgniter request and Spark command lifecycles into the Perfbase SDK without adding its own transport, queueing, or buffering layer.

What This Package Supports

Supported in v1:

Not supported in v1:

Requirements

Optional:

The current verified support floor is CodeIgniter 4.3.8 on PHP 8.2+.

Installation

Install the package:

This package resolves perfbase/php-sdk from Packagist by default. If you need to test against an unpublished SDK branch in a monorepo, add a temporary Composer repository override locally instead of assuming a built-in path repository.

Quick Start

  1. Install the package.
  2. Run the installer:

  3. Set your API key in the environment or published config.
  4. Make sure the Perfbase PHP extension is installed and enabled.
  5. Verify the setup:

What perfbase:install Does

The installer:

If you only want the alias and do not want the command to modify global filters:

If you prefer to publish the config manually:

Configuration

After installation, configuration lives in app/Config/Perfbase.php.

The package also supports environment-backed defaults via src/Config/Perfbase.php.

Configuration Options

Environment Variables

profileHttpStatusCodes is a comma-separated allowlist. The default behavior is equivalent to [...range(200, 299), ...range(500, 599)], so 404 responses are dropped by default while 5xx responses are kept.

Example Production Configuration

Verification and Diagnostics

Run:

The doctor checks:

If worker mode is detected, the doctor also prints a reminder to restart workers after config or deployment changes.

Verification and Compatibility Testing

Required PR CI stays intentionally small:

Manual compatibility probes cover the wider declared CodeIgniter 4 range and are used when validating the support floor or widening support claims.

If you run local composer install on PHP 8.4, Composer may resolve a newer compatible CodeIgniter release than the declared floor. Use bin/test-compat or the manual compatibility workflow when you need to verify the floor explicitly.

Local Docker Compatibility Probes

Run compatibility probes locally without depending on the host PHP version:

Notes:

GitHub Actions Compatibility Probes

The manual workflow in .github/workflows/compatibility.yml runs a small set of explicit PHP/CodeIgniter pairs:

This workflow is manual on purpose. It is for compatibility investigation and release-floor validation, not for every pull request.

HTTP Profiling

HTTP profiling is implemented by the perfbase filter.

The package:

HTTP Attributes

The HTTP lifecycle sets:

http_url intentionally excludes query strings to avoid leaking secrets and to reduce cardinality.

Spark CLI Profiling

CLI profiling is wired through pre_command and post_command events.

The package:

Filter Matching

HTTP and console include/exclude filters support:

HTTP matching evaluates:

Console matching evaluates the Spark command name.

Malformed regex filters fail closed and will not match.

Sampling

sampleRate must be between 0.0 and 1.0.

User Resolution

User resolution runs in this order:

  1. configured custom resolver from $userResolver
  2. runtime CodeIgniter Shield detection
  3. a request-attached $request->user fallback

Only stable scalar identifiers are recorded.

Custom User Resolver

Set userResolver to either:

The resolver must implement Perfbase\CodeIgniter4\Contracts\UserResolverInterface:

Then configure either:

or:

Shield Integration

If Shield is installed and its auth service is available, the package will try to resolve the current user automatically. Shield is optional and is not a hard Composer dependency.

Error Handling

The package fails open by default.

Use debug=true only while integrating or diagnosing package behavior.

Worker Mode

The package is designed to be safe under FrankenPHP worker mode:

If you run CodeIgniter under FrankenPHP workers:

Troubleshooting

perfbase:doctor says the extension is unavailable

The Perfbase PHP extension is not loaded in the PHP runtime executing CodeIgniter. Verify the extension is installed, enabled, and visible to both web and CLI SAPIs.

perfbase:doctor says the filter alias or globals are missing

Run:

If you manage filters manually, verify that:

No traces are being sent

Check, in order:

  1. enabled is true
  2. apiKey is configured
  3. the extension is available
  4. your request or command is not excluded by filters
  5. sampleRate is not effectively disabling the context

Profiling errors should fail loudly during integration

Set:

That makes profiling errors rethrow instead of being swallowed.

Development

Current local verification for this package:

Documentation

Full documentation is available at perfbase.com/docs.

License

Apache-2.0. See LICENSE.txt.


All versions of codeigniter4 with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.5
codeigniter4/framework Version ^4.3.8
perfbase/php-sdk 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 perfbase/codeigniter4 contains the following files

Loading the files please wait ...