PHPackages                             csfcloud/utils - 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. csfcloud/utils

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

csfcloud/utils
==============

Utils package for frequently used classes and functions

030PHP

Since Oct 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CSFCloud/php-utils)[ Packagist](https://packagist.org/packages/csfcloud/utils)[ RSS](/packages/csfcloud-utils/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CSFCloud Utils
==============

[](#csfcloud-utils)

[![Build Status](https://camo.githubusercontent.com/cce8c668d0c70e030e44d35dd98cf1178bec16c4724a7d7dd1a6e9856d4c158f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f435346436c6f75642f7068702d7574696c732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CSFCloud/php-utils/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/c133449dc5d163f611ba01b6959cae42d88cdeb1a068db6c0d00240bd07d562c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f435346436c6f75642f7068702d7574696c732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CSFCloud/php-utils/?branch=master)[![Packagist](https://camo.githubusercontent.com/b321013f32dddd98e7673b7c96880ca16ce3fa3366f47496e04dbe76adb6838b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637366636c6f75642f7574696c732e737667)](https://packagist.org/packages/csfcloud/utils)

Contents
--------

[](#contents)

- Temporary file manager
- Command executer
- Recursive file lister

Temporary file manager
----------------------

[](#temporary-file-manager)

Create a new temp file

```
use CSFCloud\TempFiles\TempManager;

$tmp = new TempManager("my_context"); // Create a context
$file = $tmp->createFile(); // Create a new file
$file_path = $file->getPath(); // Get the full path to the file
$id = $file->getId(); // Get the file id, to access this file in an other session
```

Load existing temp file

```
use CSFCloud\TempFiles\TempManager;

$tmp = new TempManager("my_context"); // Create a context
$file = $tmp->getFile("my_file_id"); // Load the file with the file id
```

Command executer
----------------

[](#command-executer)

Run a command

```
use CSFCloud\Shell\CommandRunner;

$runner = new CommandRunner();
$output_file = $runner->run(CommandRunner::COMMAND_SYNC, __DIR__, "ls");
echo $output_file->getText();
$output_file->delete();
```

Recursive file finder
---------------------

[](#recursive-file-finder)

Find files recursively in a directory

```
use CSFCloud\RecursiveFileListing;

$finder = new RecursiveFileListing(__DIR__ . "/my_directory");
$files = $finder->scan();

var_dump($files);
```

Find txt files recursively in a directory

```
use CSFCloud\RecursiveFileListing;

$finder = new RecursiveFileListing(__DIR__ . "/my_directory");
$finder->addFilter('/.*\.txt$/i');
$files = $finder->scan();

var_dump($files);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/6043073?v=4)[Bence Skorka](/maintainers/skorkabence)[@SkorkaBence](https://github.com/SkorkaBence)

---

Top Contributors

[![SkorkaBence](https://avatars.githubusercontent.com/u/6043073?v=4)](https://github.com/SkorkaBence "SkorkaBence (32 commits)")

### Embed Badge

![Health badge](/badges/csfcloud-utils/health.svg)

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

PHPackages © 2026

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