PHPackages                             yobuild/htaccess-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yobuild/htaccess-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yobuild/htaccess-generator
==========================

Enhanced .htaccess generator with comprehensive security, performance, and pretty URLs configuration

10PHP

Since Jul 15Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/YoBuild/htaccess-Generator)[ Packagist](https://packagist.org/packages/yobuild/htaccess-generator)[ RSS](/packages/yobuild-htaccess-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

.htaccess Generator
===================

[](#htaccess-generator)

[![PHP Version](https://camo.githubusercontent.com/f2a8ce481f9787833e7d3330d6cdf3f1494f984301cbeaf6bc14fcfc34efc316/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d626c7565)](https://php.net)[![License](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](LICENSE)[![Composer](https://camo.githubusercontent.com/6c9427f242860ff42ef17b8f54370aeb636c2bdb8f89985f462caf0a22844ddb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d706f7365722d5061636b6167652d6f72616e6765)](https://packagist.org)

A comprehensive, security-focused .htaccess generator with advanced configuration options, pretty URLs support, and enterprise-level security features.

🚀 Features
----------

[](#-features)

- **🔒 Advanced Security**: Content Security Policy, HSTS, XSS protection, rate limiting
- **⚡ Performance Optimization**: Gzip compression, browser caching, WebP support
- **🌐 Pretty URLs**: Multiple routing modes (front-controller, extension-removal, hybrid)
- **🛡️ Access Control**: IP blacklisting/whitelisting, country blocking, bot protection
- **⚙️ Highly Configurable**: PHP configuration files with validation
- **🖥️ CLI Tool**: Command-line interface with colored output and progress tracking
- **📱 Web Interface**: Bootstrap-based form for visual configuration
- **🔄 Multiple Formats**: Support for various deployment scenarios

📦 Installation
--------------

[](#-installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require yobuild/htaccess-generator
```

### Manual Installation

[](#manual-installation)

```
git clone https://github.com/YoBuild/htaccess-generator.git
cd htaccess-generator
```

🎯 Quick Start
-------------

[](#-quick-start)

### 1. CLI Usage (Recommended)

[](#1-cli-usage-recommended)

```
# Using Composer
vendor/bin/generate-htaccess examples/simple-config.php .htaccess

# Using Composer scripts
composer run generate examples/simple-config.php .htaccess

# Manual usage
php bin/generate-htaccess examples/simple-config.php .htaccess
```

### 2. PHP Code Usage

[](#2-php-code-usage)

```
