PHPackages                             cityuderek/laravel-fa - 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. [Framework](/categories/framework)
4. /
5. cityuderek/laravel-fa

ActiveLibrary[Framework](/categories/framework)

cityuderek/laravel-fa
=====================

Laravel FA framework

1.1.10(6y ago)11.1k↑233.3%MITPHPPHP &gt;=5.3.0

Since Oct 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cityuderek/laravel-fa)[ Packagist](https://packagist.org/packages/cityuderek/laravel-fa)[ Docs](https://fishapple.com)[ RSS](/packages/cityuderek-laravel-fa/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

laravel-fa
==========

[](#laravel-fa)

Laravel FA framework Version 1.1.10

Global Functions
================

[](#global-functions)

### String

[](#string)

$slug = "aaa-222-bbb-Ccc-Ddd"; $snake = "aaa\_222\_bbb\_Ccc\_Ddd"; $camel = "aaa222BbbCccDdd"; $title = "aaa 222 Bbb Ccc Ddd";

#### snake($string)

[](#snakestring)

logd("snake 1=" . snake($slug)); logd("snake 2=" . snake($snake)); logd("snake 3=" . snake($camel)); logd("snake 4=" . snake($title)); output: snake 1=aaa\_222\_bbb\_ccc\_ddd
snake 2=aaa\_222\_bbb\_ccc\_ddd
snake 3=aaa\_222\_bbb\_ccc\_ddd
snake 4=aaa\_222\_bbb\_ccc\_ddd

#### slug($string)

[](#slugstring)

For URL logd("slug 1=" . slug($slug)); logd("slug 2=" . slug($snake)); logd("slug 3=" . slug($camel)); logd("slug 4=" . slug($title)); output: slug 1=aaa-222-bbb-ccc-ddd
slug 2=aaa-222-bbb-ccc-ddd
slug 3=aaa-222-bbb-ccc-ddd
slug 4=aaa-222-bbb-ccc-ddd

#### camel($string)

[](#camelstring)

logd("camel 1=" . camel($slug)); logd("camel 2=" . camel($snake)); logd("camel 3=" . camel($camel)); logd("camel 4=" . camel($title)); output: camel 1=aaa222BbbCccDdd
camel 2=aaa222BbbCccDdd
camel 3=aaa222BbbCccDdd
camel 4=aaa222BbbCccDdd

#### studly($string)

[](#studlystring)

logd("studly 1=" . studly($slug)); logd("studly 2=" . studly($snake)); logd("studly 3=" . studly($camel)); logd("studly 4=" . studly($title)); output: studly 1=Aaa222BbbCccDdd
studly 2=Aaa222BbbCccDdd
studly 3=Aaa222BbbCccDdd
studly 4=Aaa222BbbCccDdd

#### to\_title($string)

[](#to_titlestring)

For display logd("to\_title 1=" . to\_title($slug)); logd("to\_title 2=" . to\_title($snake)); logd("to\_title 3=" . to\_title($camel)); logd("to\_title 4=" . to\_title($title)); output: to\_title 1=Aaa 222 Bbb Ccc Ddd
to\_title 2=Aaa 222 Bbb Ccc Ddd
to\_title 3=Aaa 222 Bbb Ccc Ddd
to\_title 4=Aaa 222 Bbb Ccc Ddd

### Array

[](#array)

- gfa($\_REQUEST, "default\_value", "key"); Get value from array $\_REQUEST\["key"\] is not set or empty, it will return "default\_value"; gfa($\_REQUEST, "default\_value", "key1", "key2"); to get $\_REQUEST\["key1"\]\["key2"\], and whatnot.

### Log

[](#log)

- logd("msg"); to write log in debug level
- varDump($obj, "title"); to var\_dump($obj) in logger. It supports Laravel Model, it will call $obj-&gt;toArray() for Laravel Model.

File Helper
===========

[](#file-helper)

FileHelper::files($storageDiskName, $folder, $extFilter) use Fa\\IO\\FileHelper;

$files = FileHelper::files('log\_dir\_web', '', "log"); varDump($files, 'files');

\[2019-10-28 10:37:36\] local.DEBUG: \[test(WebFileManager:67)\] varDump; files=(type=array), count=8

- \[0\]=(type=string22), value=laravel-2019-09-25.log
- \[1\]=(type=string22), value=laravel-2019-10-08.log
- \[2\]=(type=string22), value=laravel-2019-10-14.log
- \[3\]=(type=string22), value=laravel-2019-10-17.log
- \[4\]=(type=string22), value=laravel-2019-10-21.log
- \[5\]=(type=string22), value=laravel-2019-10-24.log
- \[6\]=(type=string22), value=laravel-2019-10-25.log
- \[7\]=(type=string7), value=web.log

Fa Common API
=============

[](#fa-common-api)

### checkDatabase API (url: /api/app/chk\_db)

[](#checkdatabase-api-url-apiappchk_db)

- Add below code in routes/api.php Route::get('app/chk\_db','Api\\AppApiController@checkDatabase'); Route::post('app/chk\_db','Api\\AppApiController@checkDatabase');
- Add below code in app/Http/Controller/Api/AppApiController.php use Fa\\Http\\CmnApiHelper;

public function checkDatabase() { return CmnApiHelper::checkDatabase($request); }

### heartbeat API (url: /api/app/heartbeat)

[](#heartbeat-api-url-apiappheartbeat)

- Add below code in routes/api.php Route::get('app/heartbeat', 'Api\\AppApiController@heartbeat'); Route::post('app/heartbeat', 'Api\\AppApiController@heartbeat');
- Add below code in app/Http/Controller/Api/AppApiController.php use Fa\\Http\\CmnApiHelper;

public function heartbeat(Request $request) { return CmnApiHelper::heartbeat($request); }

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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

Every ~1 days

Total

11

Last Release

2384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17e21d0b84f55b26d12e63130806f24c31f42bbec08cab8f643dc97c3346b12f?d=identicon)[cityuderek](/maintainers/cityuderek)

---

Top Contributors

[![qooarderek](https://avatars.githubusercontent.com/u/51701625?v=4)](https://github.com/qooarderek "qooarderek (22 commits)")[![cityuderek](https://avatars.githubusercontent.com/u/22133460?v=4)](https://github.com/cityuderek "cityuderek (1 commits)")

---

Tags

frameworklaravel

### Embed Badge

![Health badge](/badges/cityuderek-laravel-fa/health.svg)

```
[![Health](https://phpackages.com/badges/cityuderek-laravel-fa/health.svg)](https://phpackages.com/packages/cityuderek-laravel-fa)
```

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27431.5k](/packages/rahulalam31-laravel-abuse-ip)

PHPackages © 2026

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