Download the PHP package gravity-ac/amfphp-custom without Composer
On this page you can find all versions of the php package gravity-ac/amfphp-custom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gravity-ac/amfphp-custom
More information about gravity-ac/amfphp-custom
Files in gravity-ac/amfphp-custom
Package amfphp-custom
Short Description Maintained AMF0/AMF3 remoting library for PHP 8.4 and later
License BSD-3-Clause
Homepage https://github.com/gravity-ac/amfphp-custom
Informations about the package amfphp-custom
AMFPHP Custom
A maintained AMF0/AMF3 remoting library for PHP 8.4 and later, based on AMFPHP 2.2.2.
Install
Composer loads amfphp/ClassLoader.php, which provides the library's legacy class-loader compatibility.
Create a gateway
Keep the gateway and service classes outside the public document root where possible. Authenticate and authorize calls before dispatch, expose only intended public service methods, and use HTTPS. All optional plugins except AmfphpErrorHandler are disabled by default; enable only a plugin your application deliberately requires. Detailed error responses must be disabled in production.
The default request-body limit is 8 MiB and can be lowered with CONFIG_MAX_REQUEST_BYTES. Services beginning with path traversal syntax and methods that are magic, underscored, malformed, or non-public are rejected. CONFIG_REQUIRE_AMF3_ENVELOPE is opt-in so existing AMF0 consumers are not broken by a package update.
AMF3 interoperability
AIR NetConnection clients should explicitly set objectEncoding = ObjectEncoding.AMF3 before connect(). Some clients place AMF3 values inside the standard AMF envelope, so do not remove AMF0 envelope support based only on the envelope version. Verify the first body marker on the wire before enabling an AMF3-only policy.
Development
composer check runs syntax checks, PHPUnit, PHPStan, and PHP 8.4 compatibility checks. CI runs the suite on PHP 8.4 and 8.5.
License
BSD 3-Clause. See license.txt.