cd /usr/src
wget https://www.php.net/distributions/php-8.1.10.tar.gz
tar zxvf php-8.1.10.tar.gz
cd php-8.1.10/ext/gd
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
cd /usr/src
wget https://www.php.net/distributions/php-8.1.10.tar.gz
tar zxvf php-8.1.10.tar.gz
cd php-8.1.10/ext/gd
<?php | |
/** | |
* Based on | |
* https://www.php.net/manual/pt_BR/function.easter-date.php#96686 | |
*/ | |
class BrazilHolidays { | |
/** |
<?php | |
$arr = [ | |
'key_1' => [ | |
'key_1_val_1', | |
'key_1_val_2', | |
'key_1_val_3', | |
'key_1_val_4', | |
], | |
'key_2' => [ | |
'key_2_val_1', |
<?php | |
/** | |
* Class WPSSDummy | |
* | |
* Generate dummy posts, see parameters of loripsum api: | |
* | |
* (integer) - The number of paragraphs to generate. | |
* short, medium, long, verylong - The average length of a paragraph. | |
* decorate - Add bold, italic and marked text. |
<?php | |
/** | |
* Class WPSSCpt | |
* Generate custom post types | |
*/ | |
class WPSSCpt { | |
/** | |
* Class instance |
<?php | |
if( !class_exists('Redux') ) { | |
return; | |
} | |
$opt_name = 'wpss_option'; | |
$theme = wp_get_theme(); |
<?php | |
/** | |
* @author Angelo Rocha | |
* @copyleft 2021 | |
* @license GNU GPL 3 (https://www.gnu.org/licenses/gpl-3.0.html) | |
* | |
* @param string $image Set url to get image | |
* | |
*/ |
<?php | |
/** | |
* Convert CSV file in Array | |
* | |
* @param string $file_csv CSV file path | |
* | |
* @return array|string | |
*/ | |
function csv_to_array(string $file_csv){ | |
if(!file_exists($file_csv)): |
<?php | |
/** | |
* Order array by key | |
* @param $array | |
* @param $array_key | |
* @param string $order | |
* | |
* @return bool | |
*/ |