Skip to content

Instantly share code, notes, and snippets.

View mmirzaee's full-sized avatar

Ali Mirzaei mmirzaee

View GitHub Profile
@behroozam
behroozam / gist:54ffd583f10c453f92354eae5b5e4b6b
Created April 8, 2018 07:52
php deoplyer for deploy docker-compose laravel project in test and production server
<?php
namespace Deployer;
require 'recipe/common.php';
const PRODUCTION_ENV = 'production';
const TEST_ENV = 'test';
// Project name
set('application', 'my_project');
@amirasaran
amirasaran / Arabic character to Persian (Farsi) - PHP
Last active May 26, 2024 01:35
convert Arabic character to Persian (Farsi) - PHP
<?php
public static function arabicToPersian($string)
{
$characters = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',