whatvn / php7-example-module

An example php7 module with class definition , blog post: http://tinytechie.net/#/_posts/On_writing_php7_extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php7-example

An example on how to write php7 extension

BUILD

phpize
./configure
make
make test
make install 

CONFIGURATION

php.ini

extension=example.so

Usage

<?php

$c = new example("Hello");

echo $c->get(), "\n";

CREDITs:

  • No credit required

LICENSE

As always, do whatever you want ;) I do this to learn thing only

About

An example php7 module with class definition , blog post: http://tinytechie.net/#/_posts/On_writing_php7_extension


Languages

Language:C 75.4%Language:M4 20.0%Language:PHP 4.5%