Download the PHP package betterde/voyager without Composer

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

Voyager PHP Wrapper

Voyager PHP Wrapper is a Composer package for the voyager PHP extension. It adds auto-loadable PHP stubs and a small object-oriented facade around the native runtime function and method redefinition APIs.

The underlying extension lives in /Users/George/Develop/C/voyager and provides the native functions:

This package exposes those functions to Composer projects and provides Betterde\Voyager\Debug for a cleaner call style.

How It Works

Features

Requirements

The Composer package requires ext-voyager, so composer install will fail if the extension is not available to the PHP binary Composer is using.

Installing the Native Extension

Build and install the C extension first:

Then enable it in your php.ini:

You can also load it temporarily for a single command:

Verify that PHP can see the extension:

Installing This Package

Install the wrapper with Composer:

For local development from this repository:

Usage

Redefine a Function

Redefine a Method

Use $this in a Redefined Method

String Body Mode

The native extension also supports defining the replacement with an argument list string and a code body string. The Debug facade keeps that mode available.

For methods, pass optional flags as the fifth argument:

API

Betterde\Voyager\Debug::functionRedefine()

Redefines an existing function.

Betterde\Voyager\Debug::methodRedefine()

Redefines an existing class method.

Available facade flags:

Constant Value Meaning
Debug::FLAG_PUBLIC 0x0100 Public method
Debug::FLAG_PROTECTED 0x0200 Protected method
Debug::FLAG_PRIVATE 0x0400 Private method
Debug::FLAG_STATIC 0x0001 Static method
Debug::FLAG_RETURN_REFERENCE 0x0800 Return by reference

Flags may be combined with bitwise OR:

Native Functions

This package also autoloads stubs for the native functions, so IDEs and static analysis tools can understand them:

Important Notes

Voyager changes PHP runtime behavior at the Zend engine level. Treat it as a debugging, diagnostics, instrumentation, and emergency hot-fix tool.

Project Structure


All versions of voyager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-voyager Version >=8.2.1
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 betterde/voyager contains the following files

Loading the files please wait ...