PHP code example of nueip / helpers
1. Go to this page and download the library: Download nueip/helpers library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nueip / helpers example snippets
bash
# 安裝依賴
$ sudo apt install gcc make autoconf libc-dev pkg-config libmcrypt-dev php-pear php8.1-dev
# 安裝 Mcrypt
$ sudo apt-get -y install libmcrypt-dev
$ sudo pecl install mcrypt-1.0.4
# 設定
$ sudo bash -c "echo extension=/usr/lib/php/20200930/mcrypt.so > /etc/php/8.1/cli/conf.d/mcrypt.ini"
$ sudo bash -c "echo extension=/usr/lib/php/20200930/mcrypt.so > /etc/php/8.1/apache2/conf.d/mcrypt.ini"
# 檢查
$ php -i | grep "mcrypt"