PHPackages                             novia713/maginot - 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. novia713/maginot

ActiveProject

novia713/maginot
================

Maginot is a php tool class for managing lines into php files

027PHP

Since Dec 6Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

🏜 maginot
=========

[](#-maginot)

Maginot is a php tool class for managing lines into php files

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

[](#installation)

`composer require novia713/maginot`

Usage
-----

[](#usage)

Instance Maginot

```
use Novia713\Maginot\Maginot;

$maginot = new Maginot();
```

then you can do the following things:

📍 *comment a line into a file*

*WARNING: This comments out all the ocurrences*

```
$maginot->commentLine("this is an example line. can be whatever", $myFile);
```

📍 *uncomment a line into a file* \[provide the actual line, including the comment symbol\]

*WARNING: This uncomments out all the ocurrences*

```
$maginot->unCommentLine("this is an example line. can be whatever", $myFile));
```

📍 *set the first line of a file*

```
$maginot->setFirstLine("this is an example line. can be whatever", $myFile));
```

📍 set the last line of a file\_

```
$maginot->setLastLine("this is an example line. can be whatever",  $myFile);
```

📍 *get the first line of a file*

```
$maginot->getFirstLine( $myFile);
```

📍 *get the last line of a file*

```
$maginot->getLastLine( $myFile);
```

📍 *get n line of a file*

```
$maginot->getNLine( $myFile, 2);
```

📍 *get the line number of a given line into a file*

```
$maginot->getLineNumber("this is an example line. can be whatever", $myFile);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dcc0a4601f59a399b191fc20cd222d365c0db24762bf36af1bf9093e547747b?d=identicon)[novia713](/maintainers/novia713)

---

Top Contributors

[![novia713](https://avatars.githubusercontent.com/u/423279?v=4)](https://github.com/novia713 "novia713 (17 commits)")

### Embed Badge

![Health badge](/badges/novia713-maginot/health.svg)

```
[![Health](https://phpackages.com/badges/novia713-maginot/health.svg)](https://phpackages.com/packages/novia713-maginot)
```

PHPackages © 2026

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