Download the PHP package goez/laravel-fakedown without Composer
On this page you can find all versions of the php package goez/laravel-fakedown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-fakedown
Laravel Fakedown
Laravel Fakedown is a Laravel package that generates fake Markdown content, perfect for testing, prototyping, or content placeholders.
Features
- π Easy to Use: Generate rich Markdown content with just a few lines of code
- π Multi-language Support: Traditional Chinese, Simplified Chinese, English, Japanese
- π¨ Multiple Styles: Professional, casual, technical styles, plus domain-specific styles for music, art, technology, gaming, sports, travel, food, health, education, business, and software development
- π Rich Formatting: Headings, paragraphs, lists, code blocks, tables, blockquotes, links, images
- β‘ Artisan Commands: Convenient command-line tools
- π§ Faker Integration: Use in data seeding, Factory, Seeder
- π Highly Customizable: Customize content length, language, and structure
- π§ͺ Complete Testing: Unit and integration tests
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or higher (including Laravel 12.x and future versions)
Installation
Publishing Configuration Files (Optional)
Configuration File Description
config/fakedown.php
: Main configuration file containing basic settings like language, length, styleconfig/fakedown-templates.php
: Template content file containing all language and style template data
Usage Recommendations
- If you only need to adjust basic settings (like default language, length), just publish
fakedown-config
- If you need to customize template content or add styles, publish
fakedown-templates
- For first-time use, recommended to publish all files:
--tag=fakedown-all
Basic Usage
1. Using Facade
2. Dependency Injection
3. Faker Provider
4. Using in Model Factory
Configuration
After publishing configuration files, you can customize settings in config/fakedown.php
:
Supported Languages
zh-tw
- Traditional Chinesezh-cn
- Simplified Chineseen
- Englishja
- Japanese
Supported Elements
- Headings (H1-H6)
- Paragraphs
- Unordered lists
- Code blocks
- Tables
- Blockquotes
- Links
- Images
Artisan Commands
Quickly generate Markdown content:
Command Options
--language
: Specify language (zh-tw, zh-cn, en, ja)--length
: Specify number of sections--style
: Specify style (professional, casual, technical, music, art, technology, gaming, sports, travel, food, health, education, business, software)--output
: Output file path--no-headings
: Disable headings--no-lists
: Disable lists--no-code
: Disable code blocks--no-tables
: Disable tables--no-blockquotes
: Disable blockquotes--no-links
: Disable links--no-images
: Disable images--no-lists
: Disable lists--no-code
: Disable code blocks--no-tables
: Disable tables--no-blockquotes
: Disable blockquotes--no-links
: Disable links--no-images
: Disable images
Title Generator Feature
Laravel Fakedown provides a powerful title generator that creates unique and coherent titles.
Features
- Uniqueness Guarantee: Each generated title is unique and won't be repeated
- Multiple Combination Patterns: Uses various word combinations including prefixes, subjects, objects, and suffixes
- Smart Connections: Automatically selects appropriate connectors to ensure title fluency
- Style Support: Supports different styles for title generation
- Cache Management: Built-in cache mechanism with the ability to clear generated title records
Basic Usage
Advanced Features
Title Combination Patterns
The title generator uses the following combination patterns:
- Prefix + Subject: Deep Analysis + Frontend Development
- Subject + Object: Frontend Development + Best Practices
- Prefix + Subject + Suffix: Deep Analysis + Frontend Development + Complete Manual
- Subject + Object + Suffix: Frontend Development + Best Practices + Practical Guide
- Prefix + Object: Deep Analysis + Best Practices
- Object + Suffix: Best Practices + Practical Guide
Connection Modes
The system intelligently selects different connection methods:
- Direct connection:
DeepAnalysisFrontendDevelopment
- Colon connection:
Deep Analysis: Frontend Development
- "of" connection:
Deep Analysis of Frontend Development
- "and" connection:
Frontend Development and Best Practices
- Dash connection:
Deep Analysis - Frontend Development
Using in Faker Provider
Advanced Examples
Generate Blog Articles
Generate Technical Documentation
Development
Common Commands
Todo List
- [ ] Add more language support
- [ ] Support custom templates
- [ ] Add Markdown output validation
- [ ] Performance optimization
- [ ] More content types (math formulas, flowcharts, etc.)
Testing
Code Style
This project uses Laravel Pint for code formatting:
Contributing
Please see CONTRIBUTING for details.
Changelog
Please see CHANGELOG for more information what has changed recently.
License
MIT License. See License File for details.
Documentation Languages
- English (Current)
- ζ£ι«δΈζ
All versions of laravel-fakedown with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
fakerphp/faker Version ^1.20