PHPackages                             gisostallenberg/file-permission-calculator - 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. gisostallenberg/file-permission-calculator

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

gisostallenberg/file-permission-calculator
==========================================

Library to convert file permissions from various formats to another

1.0.3(9y ago)223.2k[2 issues](https://github.com/gisostallenberg/file-permission-calculator/issues)4MITPHP

Since Nov 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/gisostallenberg/file-permission-calculator)[ Packagist](https://packagist.org/packages/gisostallenberg/file-permission-calculator)[ RSS](/packages/gisostallenberg-file-permission-calculator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (4)

[![Latest Stable Version](https://camo.githubusercontent.com/10c9c2c2244d70ac31e6cf325528f81d5c1526b80dd07d1ac73984f303e30683/68747470733a2f2f706f7365722e707567782e6f72672f6769736f7374616c6c656e626572672f66696c652d7065726d697373696f6e2d63616c63756c61746f722f76657273696f6e)](https://packagist.org/packages/gisostallenberg/file-permission-calculator)[![Latest Unstable Version](https://camo.githubusercontent.com/fab22b3450504cdf0363ba4d8d45ee7251012e91884bcb8f3ea9bd33ab64442a/68747470733a2f2f706f7365722e707567782e6f72672f6769736f7374616c6c656e626572672f66696c652d7065726d697373696f6e2d63616c63756c61746f722f762f756e737461626c65)](//packagist.org/packages/gisostallenberg/file-permission-calculator)[![License](https://camo.githubusercontent.com/076b35b33709e171b540d8e4912a522bbe353c6a4aab0304e7357f98a87145a9/68747470733a2f2f706f7365722e707567782e6f72672f6769736f7374616c6c656e626572672f66696c652d7065726d697373696f6e2d63616c63756c61746f722f6c6963656e73652e737667)](https://packagist.org/packages/gisostallenberg/file-permission-calculator)[![Total Downloads](https://camo.githubusercontent.com/fdcbb478e67631d2bd3fa5b181b55038dbea8e4a3dc84d6f2451711a64ff2312/68747470733a2f2f706f7365722e707567782e6f72672f6769736f7374616c6c656e626572672f66696c652d7065726d697373696f6e2d63616c63756c61746f722f646f776e6c6f616473)](https://packagist.org/packages/gisostallenberg/file-permission-calculator)[![Travis](https://camo.githubusercontent.com/a6f9e9a71c69a2c5148f63643ff679c83d82fcb62def7dc39637e399bbec9119/68747470733a2f2f6170692e7472617669732d63692e6f72672f6769736f7374616c6c656e626572672f66696c652d7065726d697373696f6e2d63616c63756c61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gisostallenberg/file-permission-calculator)

File Permission Calculator
==========================

[](#file-permission-calculator)

Library to convert file permissions from various formats to another

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

[](#installation)

```
composer require gisostallenberg/file-permission-calculator
```

Usage examples
--------------

[](#usage-examples)

```
use GisoStallenberg\FilePermissionCalculator\FilePermissionCalculator;

echo new FilePermissionCalculator(0100700); // -rwx------
echo new FilePermissionCalculator(0700); // urwx------
echo FilePermissionCalculator::fromStringRepresentation('-rw-r--r--')->getMode(); // 33188
echo FilePermissionCalculator::fromStringRepresentation('-rw-r--r--')->getOctalString(); // 100644
echo FilePermissionCalculator::fromStringRepresentation('-rw-r--r--'); // -rw-r--r--
echo FilePermissionCalculator::fromOctalString('0100700'); // -rwx------
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~73 days

Total

4

Last Release

3598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ea7c6acad608c13a090d72dc45f02ef149d8e41b16c671ee221baf7d1e977d7?d=identicon)[gisostallenberg](/maintainers/gisostallenberg)

---

Top Contributors

[![gisostallenberg](https://avatars.githubusercontent.com/u/11526270?v=4)](https://github.com/gisostallenberg "gisostallenberg (18 commits)")

---

Tags

permissionsfile permissionschmodfileperms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gisostallenberg-file-permission-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/gisostallenberg-file-permission-calculator/health.svg)](https://phpackages.com/packages/gisostallenberg-file-permission-calculator)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeremykenedy/laravel-roles

A Powerful package for handling roles and permissions in Laravel. Supports Laravel 5.3 up to 12.

1.0k826.8k7](/packages/jeremykenedy-laravel-roles)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[pktharindu/nova-permissions

Laravel Nova Grouped Permissions (ACL)

136387.1k](/packages/pktharindu-nova-permissions)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
