1. Go to this page and download the library: Download bit-01/sy-faker 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/ */
bit-01 / sy-faker example snippets
use Bit\SyFaker\SyFaker;
$syFaker = new SyFaker();
// Text and Paragraphs
$faker->word(); // e.g., "مبسوط", "إيمتى", "سوريا", "رفيق", "عنجد"
$faker->words(5); // e.g., "مرحبا كيفك عنجد شوي منيح"
$faker->words(5, true); //e.g., ['مرحبا', 'كيفك', 'عنجد', 'شوي', 'منيح']
$faker->sentences(2); // e.g., "شو صاير معك؟ العمل الجاد يؤدي إلى النجاح."
$faker->sentences(2, 'msa', false, ' | '); // e.g., "ذهبت إلى السوق | إن التعليم هو أساس تقدم الأمم."
$faker->sentence(); // e.g., "شو صاير معك؟"
$faker->sentence('msa'); // e.g., "ذهبت إلى السوق لشراء بعض الحاجيات."
$faker->sentence('dialect'); // e.g., "خلص بكفي لهون."
$faker->paragraph(); // default mixed
$faker->paragraph(4, 6, 'msa'); // only Modern Standard Arabic
$faker->paragraph(5, 8, 'dialect'); // only Syrian dialect
// Names
$faker->name(); // e.g., "علي الحلبي"
$faker->firstName(); // e.g., "مريم"
$faker->lastName(); // e.g., "الدمشقي"
// Addresses
$faker->address(); // e.g., "دمشق، المزة، شارع الحمرا، بناء رقم 12"
// Phone Numbers
$faker->mobile(); // e.g., "+963 93 123 4567" (random company)
$faker->mobile(false); // e.g., "093 123 4567" (without country code)
$faker->mobile(true, 'syriatel'); // e.g., "+963 93 123 4567" (Syriatel)
$faker->mobile(true, 'mtn'); // e.g., "+963 94 123 4567" (MTN Syria)
$faker->syriatel(); // e.g., "+963 93 123 4567"
$faker->mtn(); // e.g., "+963 94 123 4567"
$faker->landline(); // e.g., "+963 11 123 4567"
$faker->landline(false); // e.g., "011 123 4567"
// Dates
$faker->gregorianDate(); // e.g., "22/07/2025"
$faker->hijriDate(); // e.g., "16/01/1447"
$faker->randomGregorianDate('-2 years', 'now'); // e.g., "05/06/2023"
$faker->randomHijriDate('-2 years', 'now'); // e.g., "15/02/1445"
// Companies
$faker->companyName(); // e.g., "شركة النور محدودة المسؤولية"
// Job Titles
$faker->jobTitle(); // e.g., "مهندس برمجيات"
// Business Types
$faker->businessType(); // e.g., "تكنولوجيا المعلومات"
// Syrian foods
$faker->food(); // e.g., "شيش برك"
// idioms
$faker->idiom(); // e.g., "بيضحك عالمشنقة"
// proverbs
$faker->proverb(); // e.g., "كل تأخيرة فيها خيرة"
// traditional items
$faker->traditionalItem(); // e.g., "مروحة يدوية"
// sentence of: Syrian foods, idioms, proverbs, and traditional items
$faker->culturalSentence(); // Output: وأنت عم تاكل محشي كوسا جنب صابون الغار، تذكّر المثل الشامي: "كل تأخيرة فيها خيرة".
use Bit\SyFaker\SyFaker;
$syFaker = new SyFaker();
// or you can use the helper function e.g.:
syFaker()->name();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.