PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   PHP STMR   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP STMR
PHP extension to implement the Porter stemmer
Author: By
Last change:
Date: 1 year ago
Size: 1,301 bytes
 

Contents

Class file image Download

Hello World PHP Extension

This is a simple php extension that demonstrates the extension development process. This extension was used as example for the "PHP: Extending The Core - Why You Should Learn It" talk, presented at the The Developer's Conference 2k17 at Porto Alegre - Brazil.

Requirements

As this extension is simple, you don't need all the development environment tools installed, but if you want to make changes you must configure the php devel environment as described in the official documentation.

Installation

To install the extension just perform the commands described below:

$ git clone git@github.com:devsdmf/hello-php-extension.git && cd hello-php-extension
$ phpize
$ ./configure
$ make
$ sudo make install

Documentation

This extension has only one function that is described below:

say_hello

(PHP 5 >= 5.5, PHP 7) say_hello - Say hello to someone.

Description

void say_hello( string $who = 'World' )

Say hello to _$who_.

Examples

Say hello to world.

Code:

say_hello();

Output:

Hello World!

Say hello to TDC.

Code:

say_hello('TDC');

Output:

Hello TDC!

License

This project is licensed under the MIT license.