This extension is a PHP API of the BounceStudio library of the BoogieTools, Inc. The extension utilizes functions of that library and completely depends on it. That library enables your application to recognize thousands of email bounce formats. Easy to use, robust, extremely fast, and accurate, BounceStudio API was designed for professional Linux developers who demand the best.
- Make a temporary folder:
mkdir /tmp/bouncestudio_install
cd /tmp/bouncestudio_install
- Download and extract the most recent BounceStudio library:
wget https://www.boogietools.com/download/Linux/BounceStudioAPI/BounceStudioAPI-linux.tar.gz
tar -xvzf BounceStudioAPI-linux.tar.gz
- Place the BounceStudio lib into a proper place on your machine (we will build it on the x86_64 platform so we use appropriate lib file and system folder):
sudo cp BounceStudioAPI-linux/libBounceStudio64.so.3.7.0.962 /usr/lib64/
sudo ln -s /usr/lib64/libBounceStudio64.so.3.7.0.962 /usr/lib64/libBounceStudio64.so
- Time to checkout this repo:
git clone git@github.com:Avaaz/bouncestudio-php7.git
- Copy
BounceStudio.h
to the folder of the extension you want to build (we will build the extension for the PHP7. For PHP5 use appropriate folder):
cp BounceStudioAPI-linux/BounceStudio.h bouncestudio-php-7/
- Now we are ready do build it. So let's do it:
cd bouncestudio-php-7/
phpize
./configure --enable-bouncestudio
make CFLAGS="-lBounceStudio64 $CFLAGS"
- Install the extension lib to the php modules folder:
sudo make install
- Do not forget to enable the extension in your
php.ini
configuration with:
extension=bouncestudio.so
- Let's check it's enabled:
php --ri "BounceStudio API"