PHPackages                             ghorbannezhad/fact - 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. ghorbannezhad/fact

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

ghorbannezhad/fact
==================

This is the fact generator package

v1.0(7y ago)035MITPHPPHP &gt;=7.1.3

Since Aug 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Ghorbannezhad/fact)[ Packagist](https://packagist.org/packages/ghorbannezhad/fact)[ RSS](/packages/ghorbannezhad-fact/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Fact Generator
==============

[](#fact-generator)

Fact generator is a simple laravel package which generate fact image. You only need to define your desired image, logo and text to generate sample fact image. It support English and Persian.

Install
-------

[](#install)

1- Install the package with composer

```
composer require --dev ghorbannezhad/fact

```

2- Publish config file

```
php artisan vendor:publish --provider="Ghorbannezhad\Fact\FactServiceProvider"

```

### Usage

[](#usage)

1- Add service provider to config/app.php

```
'providers' => [
    ...
    Ghorbannezhad\Fact\FactServiceProvider::class,
]
```

2- Call fact facade in controller

```
    $image = public_path('/address/to/image.jpg');
    $text= 'Lorem ipsum';
    $fact = FactFacade::create($image,$text);
```

3- Set language and font in config file

```
return [
    'logo'=>$logo,
    'style'=>[
        'margin_top'=>10,        //in percent
        'margin_left'=>10,      //in percent
        'margin_bottom'=>10,   //in percent
        'margin_right'=>10,   //in percent
        'font_size'=>24,
        'line_height'=>50,
        'logo_from_bottom'=> 10,  //in percent
        'font'=>$font,
        'text_align'=>'center' //supported: center|right|left
    ],
    'lang'=>'fa', //supported: fa | en
    'save_path'=>$save_path,

];

```

### Contributers

[](#contributers)

- Faezeh Ghorbannezhad [@ghorbannezhad](http://github.com/Ghorbannezhad)
- Mostafa Zeinivand [@mostafaznv](http://github.com/mostafaznv)
- Ramin Khatibi [@raminix](http://github.com/raminix)
- Samsson Apps [@SamssonApps](http://github.com/SamssonApps)

### License

[](#license)

FactGenerator is licensed under the MIT License - see the `LICENSE` file for details

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2873d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2787434?v=4)[Faezeh Ghorbannezhad](/maintainers/Ghorbannezhad)[@Ghorbannezhad](https://github.com/Ghorbannezhad)

---

Top Contributors

[![Ghorbannezhad](https://avatars.githubusercontent.com/u/2787434?v=4)](https://github.com/Ghorbannezhad "Ghorbannezhad (7 commits)")

### Embed Badge

![Health badge](/badges/ghorbannezhad-fact/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M268](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M997](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/process

The Illuminate Process package.

44869.2k98](/packages/illuminate-process)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)

PHPackages © 2026

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