PHPackages                             jdz/htaccessmaker - 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. jdz/htaccessmaker

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

jdz/htaccessmaker
=================

Build htaccess files

1.0.7(8mo ago)07MITPHPPHP &gt;=8.1

Since Jul 31Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/joffreydemetz/htaccessMaker)[ Packagist](https://packagist.org/packages/jdz/htaccessmaker)[ Docs](https://jdz.joffreydemetz.com/htaccessmaker/)[ RSS](/packages/jdz-htaccessmaker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

HtaccessMaker
=============

[](#htaccessmaker)

A PHP library for generating Apache .htaccess files programmatically. Build secure, optimized, and maintainable .htaccess configurations using an object-oriented approach.

I use this library to manage my clients htaccess files based on their needs and requirements. It allows me to quickly generate .htaccess files with the necessary security, performance, and routing rules without manually writing complex Apache directives.

Features
--------

[](#features)

- **🔒 Security-First**: Built-in security containers for XSS protection, CSRF prevention, and attack blocking
- **⚡ Performance Optimized**: Compression, caching, and static file optimization
- **🏗️ Modular Architecture**: Reusable containers and directives for clean code organization
- **🔧 Flexible Configuration**: YAML/array-based configuration or fluent API
- **🧪 Fully Tested**: Comprehensive unit test suite with 1000+ tests
- **📝 Type-Safe**: Full PHP type declarations and PHPDoc documentation

Installation
------------

[](#installation)

```
composer require jdz/htaccessmaker
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
