This Laravel application allows you to generate synthetic data based on predefined columns and output settings. It is especially useful for testing and development purposes.
- Customizable Columns: Define your own columns with specific data types.
- Locale Support: Generate data based on specific locales.
- Flexible Output: Export data in various formats such as CSV or Excel (XLXS).
- Bulk Data Generation: Generate rows of data based on your input at a time.
- Name (Person name)
- Password
- PhoneNumber
- Address
- Sentences (Real random text)
- Number (Random 2 digit number)
- Date
- CompanyName
- English (US)
- Indonesian (ID)
- German (DE)
- French (FR)
- Spanish (ES)
- Italian (IT)
- Portuguese (PT)
- Russian (RU)
- Japanese (JP)
- Korean (KR)
- Chinese (CN)
- PHP >= 8.2
- Composer
-
Clone the repository
git clone https://github.com/akunbeben/csv-excel-generator.git cd csv-excel-generator
-
Install dependencies
composer install npm install npm run dev
-
Copy the example environment file and configure it
cp .env.example .env php artisan key:generate
-
Configure your database settings in the
.env
file (Prefer to use SQLite) -
Run database migrations
php artisan migrate
-
Serve the application
php artisan serve
The application will be available at
http://localhost:8000
.
- Add Columns: Click on "Add more columns" to define the data structure.
- Set Labels and Data Types:
- Label: Label of the column.
- Data Type: Predefined data type for generating data.
- Locale: Select the desired locale for locale-specific data generation.
- Rows: Specify the number of rows you wish to generate (e.g., 100).
- Output: Choose the desired output format (e.g., CSV or XLXS).
- Delimiter (CSV Only): Set the delimiter for the CSV output (e.g., comma).
Once all settings are configured, click on the "Generate" button to create your data. The generated data will be available for download in the specified format.
We welcome contributions from the community! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
Please make sure your code adheres to the project's coding standards and includes appropriate test coverage.
For any questions or issues, please contact [email protected] or Create an Issue ticket.
This project is licensed under the MIT License - see the LICENSE file for details.