Download the PHP package aws/aws-crt-php without Composer
On this page you can find all versions of the php package aws/aws-crt-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package aws-crt-php
AWS Common Runtime PHP bindings
Requirements
- PHP 5.5+ on UNIX platforms, 7.2+ on Windows
- CMake 3.x
- GCC 4.4+, clang 3.8+ on UNIX, Visual Studio build tools on Windows
- Tests require Composer
Installing with Composer and PECL
The package has two different package published to composer and PECL.
On UNIX, you can get the package from package manager or build from source:
On Windows, you need to build from source as instruction written below for the native extension php_awscrt.dll
. And, follow https://www.php.net/manual/en/install.pecl.windows.php#install.pecl.windows.loading to load extension. After that:
Building from Github source
Building on Windows
Requirements for Windows
-
Ensure you have the windows PHP SDK (this example assumes installation of the SDK to C:\php-sdk and that you've checked out the PHP source to php-src within the build directory) and it works well on your machine.
- Ensure you have "Development package (SDK to develop PHP extensions)" and PHP available from your system path. You can download them from https://windows.php.net/download/. You can check if they are available by running
phpize -v
andphp -v
Instructions
From Command Prompt (not powershell). The instruction is based on Visual Studio 2019 on 64bit Windows.
Note: for VS2017, Cmake will default to build for Win32, refer to here. If you are building for x64 php, you can set environment variable as follow to let cmake pick x64 compiler.
Debugging
Using PHPBrew to build/manage multiple versions of PHP is helpful.
Note: You must use a debug build of PHP to debug native extensions. See the PHP Internals Book for more info
Ensure that the php you launch from your debugger is the result of which php
, not just
the system default php.
Security
See CONTRIBUTING for more information.
Known OpenSSL related issue (Unix only)
- When your php loads a different version of openssl than your system openssl version, awscrt may fail to load or weirdly crash. You can find the openssl version php linked via:
php -i | grep 'OpenSSL'
, and awscrt linked from the build log, which will beFound OpenSSL: * (found version *)
The easiest workaround to those issue is to build from source and get aws-lc for awscrt to depend on instead.
TO do that, same instructions as here, but use USE_OPENSSL=OFF make
instead of make
License
This project is licensed under the Apache-2.0 License.