PHP-CPP - A C++ library for developing PHP extensions

Web Name: PHP-CPP - A C++ library for developing PHP extensions

WebSite: http://www.php-cpp.com

ID:342474

Keywords:

library,CPP,PHP,extensions

Description:


Why PHP-CPP? Documentation Enterprise About us Download

PHP-CPP

A C++ library for developing PHP extensions.

What is PHP-CPP?

A C++ library for developing PHP extensions. It offers a collection of well documented and easy-to-use classes that can be used and extended to build native extensions for PHP.

Learn more

Why PHP-CPP?

This C++ library makes building PHP extensions fun. Extensions built on top of PHP-CPP are easy to understand and simple to maintain, and your code looks great - and it gives a huge boost to your application!

Learn more

See it in action

Do you want to see how fast a C++ extension is in real life? Check out this real life example script, and compare it with the same algorithm in C++.

Learn more

The basics

Unlike regular PHP extensions - which are really hard to implement and require a deep knowledge of the Zend engine and pointer manipulation - extensions built with PHP-CPP are not difficult to develop at all.

Functions

The PHP-CPP library uses all the power offered by C++11 to convert the parameters and return values from your functions to/and from PHP.

Php::Value hello_world(){    return "hello world!";}

The function above is a native C++ function. With PHP-CPP you can export this function to PHP with only one single C++ method call.

extension.add("hello_world", hello_world);

Parameters and return values

Working with parameters and return values is
just as easy.

Php::Value my_plus(Php::Parameters &parameters){    return (int)parameters[0] + (int)parameters[1];}

The PHP-CPP library ensures that the variables from PHP (which internally are complicated C structures), are automatically converted into integers, passed to your function, and that the return value of your "my_plus" function is also converted back into a PHP variable.

Contribute

This library is currently a work in progress, and it is an open source project. We are looking for people who'd like to contribute to it. Feel free to contribute!

Contribute now

Who is behind PHP-CPP?

PHP-CPP is made by Copernica, a leading provider of high quality marketing software located in Amsterdam, The Netherlands. With Copernica you can deliver relevant and timely communications using email, sms, landing pages and PDF.

We are hiring

We're always looking for talented individuals to join our awesome team!

Job openings

More from Copernica

Copernica Marketing Software MailerQ Responsive Email SMTPeter Yothalot PHP-JS Follow us on

Contact us

Copernica BV De Ruijterkade 112 1011 AB, Amsterdam +31 (0)20 520 61 90 info@copernica.com

Stay up to date

Sign up for PHP-CPP updates, tips and sneak peeks. We will only use your email address to notify you of updates about PHP-CPP, and for the occasional newsletter.

Thank you for subscribing

An email has been sent to:
Please confirm your subscription by clicking on the link in the email.

Why PHP-CPP? Documentation Download Enterprise About us

TAGS:library CPP PHP extensions

<<< Thank you for your visit >>>

Websites to related :
HOME | Bessemer Library

   :root{--color_0:255,255,255;--color_27:200,144,154;--color_1:255,255,255;--color_2:0,0,0;--color_3:237,28,36;--color_4:0,136,203;--col

Ventura County Law Library

   Skip to content Main (805) 642-8982 // Passports (805) 765-6394ask@vencolawlib.orgNOTICE:Open hours: Mon-Fr 8a-12p; 1:15p-4pQuick LinksHome

服务器安装成功-phpstudy for linu

  服务器安装成功 目录说明: 1:网站目录:/www/localhost_80/wwwroot/ 2:错误提示页面:/www/localhost_80/error/ 3:你可以

Emmaus Public Library | Books, D

  Sorry, We're Closed 11 East Main Street Emmaus, PA 18049 (610) 965-9284My Account Skip to contentABOUT OUR MISSION Our Mission Our History Our Staff C

Разработка сайто

   logistic.software

Home - Carmel Clay Publ

  Main Library reopening on Saturday, October 1 » Log In / My CCPL MenuDefault Home(hidden)CatalogCalendarUsing the Library Locations & HoursGet or Re

Santa Barbara Public Library

   Skip to main navigationSkip to main content EnglishEspañol

SOGO_etext_library

  

VBX Extensions for SAP Lumira De

   MenuComponentsCharts – ~50+ dynamic and unique charting optionsMaps – location analytics with 200+ mapping optionsSelectors – Patented filters &#0

Home - Friends of the Library

  Friends of the LibraryFriends & FoundationHomeGet InvolvedJoin The FriendsContributeBook ClubsBook StoreNewsScholarshipsNewslettersEventsCOVID Cancell

ads

Hot Websites