PHPackages                             mathiasreker/php-chmod - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mathiasreker/php-chmod

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mathiasreker/php-chmod
======================

php-chmod is a PHP library for easily changing file/directory permissions recursively.

3.0.0(6mo ago)116092MITPHPPHP ^8.1CI passing

Since Aug 7Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/MathiasReker/php-chmod)[ Packagist](https://packagist.org/packages/mathiasreker/php-chmod)[ Docs](https://github.com/mathiasreker/php-chmod)[ GitHub Sponsors](https://github.com/MathiasReker)[ RSS](/packages/mathiasreker-php-chmod/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (11)Used By (0)

PHP chmod
=========

[](#php-chmod)

[![Packagist Version](https://camo.githubusercontent.com/33646272180be2b7a9632d04b066d186ed2e15fb10d27ffaba54696989131471/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://packagist.org/packages/MathiasReker/php-chmod)[![Packagist Downloads](https://camo.githubusercontent.com/b595c8adfc9135bc8f3327d6d22d2d6cba6fe38dbf61df4f8f24262ad095fd07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d61746869617352656b65722f7068702d63686d6f642e7376673f636f6c6f723d253233666630303766)](https://packagist.org/packages/MathiasReker/php-chmod)[![CI status](https://github.com/MathiasReker/php-chmod/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/MathiasReker/php-chmod/actions/workflows/ci.yml)[![Contributors](https://camo.githubusercontent.com/3b15520025e092b7c4f01e283913515665595048aa9e0249449442f1aea3ad47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://github.com/MathiasReker/php-chmod/graphs/contributors)[![Forks](https://camo.githubusercontent.com/faf2ec93a52c97e48a7121b49697240ae2c3037fc2cd20c28e5d7058775ad5bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://github.com/MathiasReker/php-chmod/network/members)[![Stargazers](https://camo.githubusercontent.com/239ba39bf4de28ecb27544c9861e8c25505f1d90d26de1fcad003d4ce4b9d7e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://github.com/MathiasReker/php-chmod/stargazers)[![Issues](https://camo.githubusercontent.com/3094844d92f471fdf397721dd1ad51ec66d30ac40e3dda27312751445343fccd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://github.com/MathiasReker/php-chmod/issues)[![MIT License](https://camo.githubusercontent.com/0f2f113ae7bd62a023e59520f5a4cad3b6a0f02822a919f344a49fdc697f42d4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d61746869617352656b65722f7068702d63686d6f642e737667)](https://github.com/MathiasReker/php-chmod/blob/develop/LICENSE.txt)

`php-chmod` is a PHP library for easily changing file/directory permissions recursively.

> ✅ Literal octal notation (0o) is supported

### Versions &amp; Dependencies

[](#versions--dependencies)

VersionPHPDocumentation^3.0^8.1current### Requirements

[](#requirements)

- php-extension `ext-mbstring`

### Installation

[](#installation)

Run:

```
composer require mathiasreker/php-chmod
```

### Examples

[](#examples)

Dry run:

```
