phpize
./configure --enable-foo
make
make install
perl -i -pe 's/foo/bar/g' config.m4 *.h *.c
perl -i -pe 's/Foo/Bar/g' config.m4 *.h *.c
perl -i -pe 's/FOO/BAR/g' config.m4 *.h *.c
The minimal PHP extension skeleton
phpize
./configure --enable-foo
make
make install
perl -i -pe 's/foo/bar/g' config.m4 *.h *.c
perl -i -pe 's/Foo/Bar/g' config.m4 *.h *.c
perl -i -pe 's/FOO/BAR/g' config.m4 *.h *.c
The minimal PHP extension skeleton