This project is focused on adjustments on the original AMFEXT project from Emanuele Ruffaldi posted on PECL. You can check it in this address: http://pecl.php.net/package/amfext.
The main purpose is to mantain compatibility with new versions of PHP.
This extension implements the ActionScript Message Format for encoding and decoding,both in AMF and AMF3 versions. Information can be found in [0].
This extension provides two low level functions useful for encoding and decoding objects into AMF format, but it does not provide functions for managing the full message. An example of implementation can be found in [1].
Details on the encoding process can be read in doc/encoding.txt
Documentation on the PHP function and the callbacks is in doc/amfextdoc.php
Constants for the flags that can be used in the encoding/decoding are in amfext.php that can be included.
We currently have the following branches:
Master - Tested with PHP 5.4.x, 5.5.14 and PHP 5.6.2 in LINUX (CentOS, Arch Linux, Ubuntu and Debian) Tested with PHP 5.4.x MAC OSX (Snow, Lion and Mountain)
PHP53x - Tested with PHP 5.3.x in Linux (CentOS, Arch Linux, Ubuntu and Debian) Tested with PHP 5.3.x MAC OSX (Snow, Lion and Mountain) Used for over a year in production environment - CentOS
PHP54x - Tested with PHP 5.4.x in Linux (CentOS, Arch Linux, Ubuntu and Debian) Tested with PHP 5.4.x MAC OSX (Snow, Lion and Mountain) Being used for over a year in production environment - CentOS
PHP55x - In development
Download the file from github and then:
- cd AMFEXT-FOLDER
- phpize
- chmod +x configure && chmod +x build/shtool (in some cases)
- ./configure
- make clean
- make
- sudo make intall
Below are some information for Git beginners.
-
Install Git from apt-get
sudo apt-get install git-core
-
An article explaining how to configure it
- Open terminal and CD into the folder where the code will be placed in (example: cd /home/user/workspace/amfext)
- Once insede the folder, clone the repo:
git clone https://github.com/protetore/amfext.git
- [Optional] Creating an alias for the project URL:
git remote add amfext https://github.com/protetore/amfext.git
git pull amfext master
Adding one file to commit: git add /path/to/file
Adding all changes: git add .
(under the project root)
Commit command order:
git add .
git commit -m 'Commit Message
(local Commit)git push -u origin master
(or another banch inste3ad of master)