PHPackages                             brunonatali/tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brunonatali/tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brunonatali/tools
=================

Tools to help development.

v0.5.20(5y ago)01245MITPHPPHP &gt;=7.3CI failing

Since Feb 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/brunonatali/tools)[ Packagist](https://packagist.org/packages/brunonatali/tools)[ RSS](/packages/brunonatali-tools/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (7)Versions (26)Used By (5)

Tools
=====

[](#tools)

Set of tools that will help you to develop a program without need to rewrite code.

This lib was write thinking to help new projects, bringing them to life much more easier.

**Table of Contents**

- [Quickstart example](#quickstart-example)
- [System Interaction](#connection-usage)
    - [setAppInitiated()](#setAppInitiated)
        - [getAppInitiated()](#getAppInitiated)
        - [setFunctionOnAppAborted()](#setFunctionOnAppAborted)
    - [setAborted()](#setAborted)
- [Install](#install)
- [Tests](#tests)
- [License](#license)

Quickstart example
------------------

[](#quickstart-example)

This is the ways to be construct this:

```
$systemInteraction = new BrunoNatali\Tools\SystemInteraction();

// Alternatively you can set system folder by hand

$mySystemFolder = ['/home/user/myApp/', '/var/myfolder/myApp/'];
$systemInteraction = new BrunoNatali\Tools\SystemInteraction($mySystemFolder);
```

System Interaction
------------------

[](#system-interaction)

### setAppInitiated()

[](#setappinitiated)

The `setAppInitiated()` method set app running by provided name, creating system file with current pid and handling requested shutdown.

```
$systemInteraction->setAppInitiated("MyAppName" [,bool $handleShutDown]): bool;
```

### getAppInitiated()

[](#getappinitiated)

The `getAppInitiated()` get info from system folder to inform if this app was set as initiated.

```
$systemInteraction->getAppInitiated(string $appName): bool;
```

### setFunctionOnAppAborted()

[](#setfunctiononappaborted)

The `setFunctionOnAppAborted()` will provide a method where you can add functions that must be executed before system shut down.

```
$systemInteraction->setFunctionOnAppAborted(callable $func): bool;
```

### setAborted()

[](#setaborted)

The `setAborted()` is generally used internal, but you could call this function to manually set app aborted and close script.

```
$systemInteraction->setAborted(void);
```

Install
-------

[](#install)

The recommended way to install this library is [through Composer](https://getcomposer.org). [New to Composer?](https://getcomposer.org/doc/00-intro.md)

This project follows [SemVer](https://semver.org/). This will install the latest supported version:

```
$ composer require brunonatali/tools:^1.0
```

This project aims to run on any platform and thus does not require any PHP extensions, but actually not tested in all environments. If you find a bug, please report.

License
-------

[](#license)

MIT, see [LICENSE file](LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

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

Every ~17 days

Total

25

Last Release

1856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7cd5291428261c565ed40d405cf12f06166ce3fcf3f5d8d0f292d3d283cd8c5?d=identicon)[brunonatali](/maintainers/brunonatali)

---

Top Contributors

[![brunonatali](https://avatars.githubusercontent.com/u/28903793?v=4)](https://github.com/brunonatali "brunonatali (181 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brunonatali-tools/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[clue/docker-react

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.

113154.9k1](/packages/clue-docker-react)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)

PHPackages © 2026

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