millooo94/etna-faker

Etna Faker is a PHP library that generates fake Catania data for you.

v1.0.2 2023-06-09 01:49 UTC

This package is auto-updated.

Last update: 2025-05-09 16:45:42 UTC


README

EtnaFaker

EtnaFaker: Fake Data Generator for Catania

Latest Version Issues Stars

Overview

EtnaFaker is a PHP library designed to generate realistic fake data specific to the Catania region in Italy. It provides developers with a convenient way to generate fake Catania-related data for various purposes such as testing, prototyping, or populating databases with sample data.

The library follows the principles and conventions of the PHP community, ensuring compatibility with existing PHP projects and frameworks. EtnaFaker leverages the power of Faker, a widely-used PHP library for generating fake data, and extends it with Catania-specific data generation capabilities.

Features

  • First Names: Generate realistic first names specific to the Catania province.

  • Last Names: Generate realistic last names specific to the Catania province.

  • Addresses: Generate realistic Catania addresses with random street names and house numbers.

  • Cities: Generate realistic Catania cities specific to the Catania province.

  • Emails: Generate realistic emails containing first and last names specific to the Catania province.

Installation

You can install EtnaFaker using Composer, the dependency management tool for PHP:

composer require millooo94/etna-faker

Usage

To start using EtnaFaker, include the library in your PHP script using the autoload functionality provided by Composer:

use Millooo94\EtnaFaker\Faker\EtnaFaker;

After including the library, you can create an instance of the EtnaFaker\Factory class to access the various data generation methods:

$faker = new EtnaFaker();

You can then use the $faker object to generate Catania-specific fake data:

// Generate a realistic Catania first name
$firstName = $faker->firstName();

// Generate a realistic Catania last name
$lastName = $faker->lastName();

// Generate a realistic Catania city
$city = $faker->city();

// Generate a realistic Catania address
$address = $faker->address();

// Generate a realistic Catania email
$email = $faker->email();

Refer to the documentation for more details on available methods and customization options.

Contributing

Contributions to EtnaFaker are welcome! If you find a bug, have a feature request, or want to contribute improvements or new data generation capabilities, please open an issue on the GitHub repository or submit a pull request.

Please ensure that your contributions align with the coding style and guidelines of the project. Also, provide appropriate tests and documentation for your changes.

License

EtnaFaker is open-source software licensed under the MIT License. See the LICENSE file for more information.