PHPackages                             bootphp/functions - 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. bootphp/functions

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

bootphp/functions
=================

Basic Utility Functions for PHP Development

0.0.0(8y ago)09311MITPHP

Since Jun 25Pushed 8y ago2 watchersCompare

[ Source](https://github.com/bootphp/functions)[ Packagist](https://packagist.org/packages/bootphp/functions)[ RSS](/packages/bootphp-functions/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

functions
=========

[](#functions)

Basic Util Functions

project
-------

[](#project)

Provides values of paths/URLs on Server which can be used throughout the project.

Lets say your Apache points to `/Users/lalittanwar/Projects/pichku-service` directory on server hence it becomes root directory. And `.htaccess` and `index.php` are in `web` folder inside root directory. And `.htaccess` is like this

```
RewriteRule ^(.*)$ index.php?_q=$1 [L,QSA]

```

On hitting the URL `http://local.pichku.com/web/cleanurl/path.json?id=78` **project** constants will have these values

```
project::$DOC_ROOT  ==  /Users/lalittanwar/Projects/pichku-service
project::$DOC_BASE  ==  /Users/lalittanwar/Projects/pichku-service/web
project::$DOC_BASE_DIR  ==  /web
project::$SCRIPT  ==  /web/noindex.php
project::$SCRIPT_FILE  ==  /Users/lalittanwar/Projects/pichku-service/web/noindex.php
project::$PROTOCOL  ==  http
project::$PORT  ==  80
project::$DISP_PORT  ==
project::$REQUEST_HOST  ==  local.pichku.com:80
project::$REQUEST_HOSTNAME  ==  local.pichku.com
project::$REQUEST_ORIGIN  ==  http://local.pichku.com
project::$REQUEST_BASE  ==  http://local.pichku.com/web
project::$REQUEST_REMOTE  ==  http://local.pichku.com/web
project::$REQUEST_SUBDOMAIN  ==  local
project::$REQUEST_DOMAIN  ==  pichku.com
project::$REQUEST_PATHNAME  ==  /web/cleanurl/path.json
project::$REQUEST_FILENAME  ==  path.json
project::$REQUEST_DIRNAME  ==  /web/cleanurl
project::$REQUEST_QUERY  ==  id=78
project::$REQUEST_FILE_EXT  ==  json

```

fn
--

[](#fn)

[Api Docs](DOCS.md#class-bootphpfn)

cokiee
------

[](#cokiee)

[Api Docs](DOCS.md#class-bootphpcookie)

str
---

[](#str)

[Api Docs](DOCS.md#class-bootphpstr)

file
----

[](#file)

[Api Docs](DOCS.md#class-bootphpfile)

Command &amp; Link
------------------

[](#command--link)

```
./lib/bin/phpdoc-md generate bootphp\\fn,bootphp\\str,bootphp\\cookie,bootstrap\\file > lib/bootphp/functions/DOCS.md

```

Will generate [DOCS](DOCS.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

3246d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d3d4bec57d0da0fddafde91796062a0e841e86ba17daecc9e118c188290794c?d=identicon)[lnt](/maintainers/lnt)

---

Top Contributors

[![lnt](https://avatars.githubusercontent.com/u/5462166?v=4)](https://github.com/lnt "lnt (11 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/bootphp-functions/health.svg)

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

###  Alternatives

[stoutlogic/acf-builder

An Advanced Custom Field Configuration Builder

8311.8M60](/packages/stoutlogic-acf-builder)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[spatie/nova-backup-tool

A Laravel Nova tool to backup your application.

361560.7k1](/packages/spatie-nova-backup-tool)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)

PHPackages © 2026

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