2017 © Pedro Pelรกez
 

project maginot

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

image

novia713/maginot

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

  • Tuesday, December 6, 2016
  • by novia713
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

๐Ÿœ maginot

Maginot is a php tool class for managing lines into php files, (*1)

Installation

composer require novia713/maginot, (*2)

Usage

Instance Maginot, (*3)

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*
 ```php
 $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*
 ```php
$maginot->unCommentLine("this is an example line. can be whatever", $myFile));
 ```
 ๐Ÿ“ _set the first line of a file_
 ```php
$maginot->setFirstLine("this is an example line. can be whatever", $myFile));
 ```
 ๐Ÿ“ set the last line of a file_
 ```php
$maginot->setLastLine("this is an example line. can be whatever",  $myFile);
 ``` 
 ๐Ÿ“ _get the first line of a file_
 ```php
$maginot->getFirstLine( $myFile);
 ```
 ๐Ÿ“ _get the last line of a file_
 ```php
$maginot->getLastLine( $myFile);

๐Ÿ“ get n line of a file ```php, (*4)

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

๐Ÿ“ get the line number of a given line into a file php $maginot->getLineNumber("this is an example line. can be whatever", $myFile);, (*6)

The Versions

06/12 2016

dev-master

9999999-dev

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

  Sources   Download

GPL-2

The Requires

 

The Development Requires

by Avatar Leandro