- FEATURES
- Autoload
- Class Reflection
- Magic Methods
- Exceptions
- Late Static Binding
- Type Hinting
- SPL
- PHPUNIT
- PHAR
- COMPOSER
- Carbon
- Guzzle
-
Faker
- Math
- Requests
- DESIGN PATTERNS
- Singleton Pattern
- Observer Pattern
- Strategy Pattern
- Dependency Injection
- Middleware
- Registry
- SYMFONY
- Routes
- Annotations
- Flex
- Controllers
- Doctrine
- Templating
- VERSIONS
- Php7.4
- Php8.0
- SECURITY
- Filter Input
- Remote Code Injection
- Sql Injection
- Session Fixation
- File Uploads
- Cross Site Scripting
- Spoofed Forms
- CSRF
- Session Hijacking
- MODERN PHP
- Composer
- Autoloader
- Package
- Releases
- Generators
- Dependency Injection
- Middleware
- CUSTOM FRAMEWORK
- App
- Http Foundation
- Front Controller
- Routing
- Render Controller
- Resolver
- SoC
- FRAMEWORKS
- Slim
- Symfony V5
- Laravel V8
- Laminas V3
- Codeigniter V4
Faker
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. Faker is a PHP library that generates fake data for you. composer require fzaninotto/faker
/**
* Even if this example shows a property access, each call to $faker->name
* yields a different (random) result.
*
* This is because Faker uses __get() magic, and forwards Faker\Generator->$property
* calls to Faker\Generator->format($property).
*/
require_once __DIR__ . '/vendor/autoload.php';
$faker = Faker\Factory::create();
echo $faker->name . " | " . $faker->name . "\r\n";
echo $faker->address . "\r\n";
echo $faker->country . " | " . $faker->country . "\r\n";
echo $faker->countryCode . " | " . $faker->countryCode;
/*
Queen Daniel | Rosario Blick
80410 Mohr Mews
Alisatown, LA 83654
Gambia | United Kingdom
EH | EE
*/
Last update: 8 days ago