zairl23 / helpers

A php extension implements the Laravel's supports functions:https://laravel.com/docs/5.4/helpers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helpers

Description

A php extension implements the Laravel's supports functions.

Why create it ?

I want to learn writing c program. Also the extension can be used in normal php develop.

Functions

array_add

The array_add function adds a given key / value pair to the array if the given key doesn't already exist in the array:

  $array = array_add(['name' => 'Desk'], 'price', 100);

  // ['name' => 'Desk', 'price' => 100]

How to use ?

The extension need php7, php7-devel.

  phpize

  ./configure

  make && make install

Add extension = helpers.so in php.ini file.

Learning links

  1. http://blog.csdn.net/fengye245/article/details/7870501/

  2. http://blog.csdn.net/tonysz126/article/details/6993665

About

A php extension implements the Laravel's supports functions:https://laravel.com/docs/5.4/helpers.


Languages

Language:C 69.4%Language:M4 18.3%Language:PHP 9.1%Language:JavaScript 3.1%