PHPackages                             touhedul/base - 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. touhedul/base

ActiveLibrary

touhedul/base
=============

Base package

021CSS

Since Aug 9Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Properos Base
-------------

[](#properos-base)

Base package with classes (Api, Base, Helper, Paginator, Theme), controllers and views necessarry to start a project.

**Register provider on composer.json**

```
    "autoload": {
    "...": {},
        "psr-4": {
            "App\\": "app/",
            "Properos\\Base\\": "packages/properos/properos-base/src"
        }
    },
```

**Register provider on config/app.php**

```
    'providers' => [
        "...",
        Properos\Base\BaseServiceProvider::class,
        "..."
    ],
```

**Run**composer dump php artisan vendor:publish Select -&gt; Properos\\Base\\BaseServiceProvider

**Themes**It contains a Themes class to allow the use of several themes in the project. The name of theme is declared on env variable "THEME", if this variable isn't declare it going to take a default theme.

**Use themes on routers.**

```
    Route::get('/', function () {
        return  view('themes.'.\Properos\Base\Classes\Theme::get().'.index')->with(['theme'=>\Properos\Base\Classes\Theme::get()]);
    });
```

**Create env.js**

Add on webpack.mix.js .js('resources/assets/js/bootstrap.js', 'public/be/js/core.js') .sass('resources/assets/js/be/sass/app.scss', 'public/be/css')

**Add on resources/assets/bootstrap.js**

```
    import Helpers from './misc/helpers'
    window.Helpers = Helpers;
```

**Remove from resources/assets/bootstrap.js**

```
    try {
        window.$ = window.jQuery = require('jquery');

        require('bootstrap');
    } catch (e) {}
```

**Run npm install**

**Define host, database on .env**

```
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=database_name
    DB_USERNAME=root
    DB_PASSWORD=
```

**Add on app/Providers/AppServiceProvider.php**

```
    use Illuminate\Support\Facades\Schema;

    public function boot()
    {
        Schema::defaultStringLength(191);
    }
```

**Run php artisan migrate**

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

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

---

Top Contributors

[![ratul-prolific](https://avatars.githubusercontent.com/u/110459773?v=4)](https://github.com/ratul-prolific "ratul-prolific (3 commits)")

### Embed Badge

![Health badge](/badges/touhedul-base/health.svg)

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

PHPackages © 2026

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