Skip to content

Instantly share code, notes, and snippets.

View mohsenmojadam2019's full-sized avatar
🏠
Working from home

Mohsen Mojaddam mohsenmojadam2019

🏠
Working from home
  • shakeway agency
  • iran tehran
View GitHub Profile

Laravel-websockets, SSL Certificate, Let's Encrypt, Certbot, Supervisor, Digitalocean Ubuntu

I did two days work to run laravel-websockets on my server. It will be nice to share with you.

Steps

Step1 - Laravel Websockets Installation with composer

Laravel WebSockets can be installed via composer:

@mohsenmojadam2019
mohsenmojadam2019 / Arabic character to Persian (Farsi) - PHP
Created September 19, 2021 17:20 — forked from amirasaran/Arabic character to Persian (Farsi) - PHP
convert Arabic character to Persian (Farsi) - PHP
<?php
public static function arabicToPersian($string)
{
$characters = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',