PHPackages                             fureszpeter/laratools - 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. fureszpeter/laratools

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

fureszpeter/laratools
=====================

Some usefull lib outside laravel, like Eloquent, Migartion, Config

19PHP

Since Apr 2Pushed 11y agoCompare

[ Source](https://github.com/fureszpeter/laratools)[ Packagist](https://packagist.org/packages/fureszpeter/laratools)[ RSS](/packages/fureszpeter-laratools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#laratools

If you are using phpmig, you need to create a *phpmig.php* into your **project** root folder or **PROJECT\_ROOT/config folder**

\##phpmig

This package depends on **phpmig**, so you can find the CLI command in vendor/bin/phpmig or vendor/davedevelopment/phpmig/bin/phpmig

Example:

```
">```
use Phpmig\ConfigDTO;

$configAsterisk = new ConfigDTO("mysql", "127.0.0.1", "dbname", "username", "password");

$container = new Phpmig\Container(__DIR__ . "/../migrations");
$container->setDatabaseConnection("db", $configAsterisk);
$container->setEloquentCapsule("capsule", $configAsterisk);

$container->setAdapter($container["db"]);

return $container;

```
```

and in the migartions file

```
">```
class InitSchema extends Migration
{
    const DB_KEY_NAME = "capsule";

    /* @var \Illuminate\Database\Schema\Builder $schema */
    protected $schema;

    public function init()
    {
        $this->schema = $this->get(self::DB_KEY_NAME)->schema();
    }

    /**
     * Do the migration
     */
    public function up()
    {
            $this->schema->create("states", function ($table) {
            /* @var Blueprint $table */
            $table->increments("id");
            $table->char("code", 2);
            $table->string("name", 64);
        });
    }
}

```
```

\##Config

You can define your environment in a .env file in PROJECT\_ROOT

Example **.env** file:

```
ENVIRONMENT=local

```

If environment is defined and we use during the object creation

**Config file format**

```
return [
    "driver" => "mysql"
];

```

**Read config files, without the .env file**

```
$config = new Config\Config(new \Symfony\Component\Finder\Finder(), __DIR__ . "/../config/development/");
echo $config->get("test.driver");

```

**Read config files, with the .env file**

```
$config = new Config\Config(new \Symfony\Component\Finder\Finder(), __DIR__ . "/../");
echo $config->get("test.driver");

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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/aad99cf320ed887253cf0583a230f81dd66fe1131efa3e54d30afd59ee1b7296?d=identicon)[fureszpeter](/maintainers/fureszpeter)

---

Top Contributors

[![fureszpeter](https://avatars.githubusercontent.com/u/5618381?v=4)](https://github.com/fureszpeter "fureszpeter (9 commits)")

### Embed Badge

![Health badge](/badges/fureszpeter-laratools/health.svg)

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

PHPackages © 2026

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