PHPackages                             maximo-perez-villalba/tool-txt - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. maximo-perez-villalba/tool-txt

ActiveLibrary[Testing &amp; Quality](/categories/testing)

maximo-perez-villalba/tool-txt
==============================

La clase TXT agrupa herramientas para trabajar sobre texto al estilo navaja suiza.

1.0.0(3y ago)11311MITPHPPHP &gt;=7.1

Since Aug 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/maximo-perez-villalba/tool-txt)[ Packagist](https://packagist.org/packages/maximo-perez-villalba/tool-txt)[ RSS](/packages/maximo-perez-villalba-tool-txt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

tool-txt
========

[](#tool-txt)

La clase TXT agrupa herramientas para trabajar sobre texto al estilo navaja suiza.

Tools:
------

[](#tools)

### startWith

[](#startwith)

```
$txt = TXT::create( "Lorem ipsum..." );
$txt->startWith('Lorem '); //TRUE
```

### endWith

[](#endwith)

```
TXT::create( "Lorem ipsum..." )->endWith('...'); //TRUE
```

### equals

[](#equals)

```
$text = $otherText = 'Lorem ipsum...';
TXT::create($text)->equals($otherText); //TRUE
```

### compare

[](#compare)

Comparación de string segura a nivel binario. Devuelve &lt; 0 si $ext es menor que $therText; &gt; 0 si $text es mayor que $otherText y 0 si son iguales. @see

```
$text = $otherText = 'Lorem ipsum...';
TXT::create($text)->compare($otherText) === 0; //TRUE
```

### contains

[](#contains)

```
TXT::create('Lorem ipsum...')->contains('rem ip'); //TRUE
```

### lastPart

[](#lastpart)

```
TXT::create('Lorem|ipsum')->lastPart('|'); //ipsum
TXT::create('Lorem|ipsum')->lastPart('|', TRUE); //|ipsum
```

### firstPart

[](#firstpart)

```
TXT::create('Lorem|ipsum')->firstPart('|'); //Lorem
TXT::create('Lorem|ipsum')->firstPart('|', TRUE); //Lorem|
```

### toCamelCaseClass

[](#tocamelcaseclass)

```
TXT::create('mAke_mE camel-case pLEase')->toCamelCaseClass() == 'MakeMeCamelCasePlease'; //TRUE
```

### toCamelCaseVariable

[](#tocamelcasevariable)

```
TXT::create('MAke_mE camel-case pLEase')->toCamelCaseVariable() == 'makeMeCamelCasePlease'; //TRUE
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1379d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9a7da19851a12e5a8cb6997a2e0e2f6aa841800ad9de970dd8bcc163625b272?d=identicon)[maximo-perez-villalba](/maintainers/maximo-perez-villalba)

---

Top Contributors

[![maximo-perez-villalba](https://avatars.githubusercontent.com/u/102780243?v=4)](https://github.com/maximo-perez-villalba "maximo-perez-villalba (7 commits)")

---

Tags

cutterlibraryphpphp7phpunitphpunit-testsstringtooltoolkittxt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maximo-perez-villalba-tool-txt/health.svg)

```
[![Health](https://phpackages.com/badges/maximo-perez-villalba-tool-txt/health.svg)](https://phpackages.com/packages/maximo-perez-villalba-tool-txt)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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