PHPackages                             m4rc1no5/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. m4rc1no5/tools

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

m4rc1no5/tools
==============

Some PHP and bash tools

1513Shell

Since Dec 11Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

tools
=====

[](#tools)

[![Total Downloads](https://camo.githubusercontent.com/270f710bbb95e5f0e23f327a7ed76d0b4d92001797a568a1ecae229f9dc2d1ef/68747470733a2f2f706f7365722e707567782e6f72672f6d347263316e6f352f746f6f6c732f646f776e6c6f616473)](https://packagist.org/packages/m4rc1no5/tools)

This project contains useful tools to improve my work. :)

Documentation
=============

[](#documentation)

Table of contents
-----------------

[](#table-of-contents)

1. [Installation](#installation)
2. [Add ssh key to remote linux machine](#add_ssh_key)
3. [Add virtual host in Apache](#add_virtual_host_apache)
4. [Add virtual host in Nginx](#add_virtual_host_nginx)
5. [PHP Convert String](#php_convert_string)

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

[](#installation)

This tools are available at packagist.org, so you can use composer to download this library and all dependencies.

*(add to require section in your composer.json file)*

```
    {
        "require": {
            "m4rc1no5/tools": "dev-master"
        }
    }
```

Add ssh key to remote linux machine
--------------------------------------------------------------------------

[](#add-ssh-key-to-remote-linux-machine)

This script send and add your public SSH Key to Remote Server.

\###Example###

```
bash/AddSshKey/addSshKey.sh marceen 123.123.123.123 222
```

**variables:**

- *marceen* - username
- *123.123.123.123* - hostname
- *222* - port

If remote server (or your machine) doesn't have ~/.ssh folder You can create it by command:

```
ssh-keygen -t rsa
```

Add Virtual Host in Apache
-----------------------------------------------------------------------------

[](#add-virtual-host-in-apache)

This script creates localhost website folder and adds virtual domain with sufix .lh

\###Remember###

Before run this script You must create config.sh file from config.sh.default! This file is in folder: *bash/AddVirtualHostApache/*

\###Example###

Run this command

```
sudo bash/AddVirtualHostApache/addVirtualHostApache.sh test
```

will create local domain test.lh.

After this script You can enter browser and write adress test,lh and You will see "hello test!" on screen. :)

Add Virtual Host in Nginx
---------------------------------------------------------------------------

[](#add-virtual-host-in-nginx)

This script creates localhost website folder and adds virtual domain with sufix .lh

\###Remember###

Before run this script You must create config.sh file from config.sh.default! This file is in folder: *bash/AddVirtualHostNginx/*

\###Example###

Run this command

```
sudo bash/AddVirtualHostApache/addVirtualHostNginx.sh test
```

will create local domain test.lh.

After this script You can enter browser and write adress test,lh and You will see "hello test!" on screen. :)

PHP Convert String
----------------------------------------------------------------

[](#php-convert-string)

### Underscore to Camelcase

[](#underscore-to-camelcase)

Convert string from underscore to camelcase

```
use m4rc1no5_tools\Convert\String\UnderscoreToCamelcase;

$field_name = "this_is_foo_bar";

$camelcase_field_name = UnderscoreToCamelcase::underscoreToCamelcase($field_name); // return thisIsFooBar
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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/3e540d71dc951ede4617b20b7b74c4d3d5edda7d1f2da851c52db09929822eb2?d=identicon)[m4rc1no5](/maintainers/m4rc1no5)

---

Top Contributors

[![m4rc1no5](https://avatars.githubusercontent.com/u/225676?v=4)](https://github.com/m4rc1no5 "m4rc1no5 (22 commits)")

### Embed Badge

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

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

###  Alternatives

[v17development/flarum-blog

Adds a blog section to your forum

5187.1k6](/packages/v17development-flarum-blog)

PHPackages © 2026

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