Download the PHP package symplely/zend-ffi without Composer

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

zend-ffi

zend-ffi tests

Provides the base API for creating extensions, or modifying Zend/PHP internal core with FFI.

It allows loading of shared libraries (.dll or .so), calling of C functions and accessing of C type data structures in pure PHP.

This package breaks down the Zend extension API into PHP classes getting direct access to all PHP internal actions. You can actually change PHP default behaviors. You will be able to get the behavior of componere extension without needing it.

Many routines here is a rewrite of Z-Engine library package that use different terminology and setup structure. This package follow/keep PHP C source code style with a skeleton FFi installation process.

There are many extensions on Pecl that hasn't been updated.

Installation

For normal standalone usage.

To setup a skeleton for FFI integration.

Minimum php.ini setting:

For a simple FFI integration process create/edit:

Documentation

The functions in preload.php and Functions.php should be used or expanded upon.

See tests folder for examples. Copy/paste the code between --FILE-- and --EXPECT-- blocks in the .phpt files.

For general FFI C data handling see CStruct class.

Functions c_int_type(), c_struct_type(), c_array_type() and c_typedef() are wrappers for any C data typedef turning it into PHP CStruct class instance, with all FFI functions as methods with additional features.

For AST handling:

Get the behavior of PHP extensions like nikic/php-ast and sgolemon/astkit that provide low-level bindings to the underlying AST structures, without any addition library.

The whole PHP lifecycle process can be achieved by just extending StandardModule abstract class.

A hack for headers_sent() like errors: PHP Warning: Cannot modify header information - headers already sent by (output started at xxxxxxxx

To create proper FFI C library headers from any C ABI library *.h file

Linux: cpp -P -D"__attribute__(ARGS)=" path/to/original/header.h -o ffi_header.h Windows: First download mcpp mcpp -P -D"__attribute__(ARGS)=" path/to/original/header.h -o ffi_header.h

The option -I <directory> might be needed to search/find additional include sources, and the output file will still need editing, mostly 96% proper headers, FFI will complain, just edit/check the 2 lines after the indicated line.

Reference/Credits

Possible Security Risks

The Beginning

Contributing

Contributions are encouraged and welcome; I am always happy to get feedback or pull requests on Github :) Create Github Issues for bugs and new features and comment on the ones you are interested in.

License

The MIT License (MIT). Please see License File for more information.


All versions of zend-ffi with dependencies

PHP Build Version
Package Version
Requires php Version >7.4
ext-ffi Version *
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 symplely/zend-ffi contains the following files

Loading the files please wait ....