zhanghuid / php-ext-wcl

my first php ext project, just for fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup

1. cd your-php-src/ext
2. ./ext_skel.php --ext wcl
3. write your code

compile

cd cd your-php-src/ext/wcl
make clean

# product configure file
phpize
# generate compile need 
./configure --with-php-config=`which php-config`
# compile
make
make install

test

cat main.php 
# var_dump(wcl('/var/www/html/ext/main.php'));

php -d "wcl.filter_blank=0" -c your-php-install-path/php.ini main.php 

thanks

  1. https://github.com/dstogov/php-extension
  2. https://www.zend.com/resources/writing-php-extensions

About

my first php ext project, just for fun

License:MIT License


Languages

Language:C 50.7%Language:M4 40.9%Language:PHP 8.3%