PHPackages                             dgsplash/php-services - 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. dgsplash/php-services

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

dgsplash/php-services
=====================

Commonly used services in any PHP Project

v1.2.9(2y ago)0472[1 PRs](https://github.com/digital-splash/PHP-Services/pulls)MITPHPPHP &gt;=7.4

Since Jun 12Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/digital-splash/PHP-Services)[ Packagist](https://packagist.org/packages/dgsplash/php-services)[ Docs](https://github.com/digital-splash/PHP-Services)[ RSS](/packages/dgsplash-php-services/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Common Services Used in all Projects
====================================

[](#common-services-used-in-all-projects)

To install Via Composer: `composer require dgsplash/php-services`

Packagist Link:

---

Structure
---------

[](#structure)

### Exceptions

[](#exceptions)

> Customized Exception Classes.

- Check Exceptions Folder for the full list

### Helpers

[](#helpers)

- Cookie
- Helper
- Machine Info
- MetaSeo
- Script
- ServerCache
- Style
- Validator

### Microservices

[](#microservices)

#### Accounting

[](#accounting)

- Helpers
    - Currency
- Models
    - Currency Position

#### Date

[](#date)

- Helpers
    - Date
- Models
    - Date Formats
    - Date Format Types
    - Date Types

#### Language

[](#language)

> Supported Languages: (English, Arabic, French)

- Helpers
    - Language
    - Translate
- Mappings
    - Date
    - Exceptions
    - Global
    - Number
- Models
    - Lang

#### Media

[](#media)

- Helpers
    - Media
- Models
    - Facebook Image
    - Image

### Models

[](#models)

- Code
- HTTP Codes
- Status

### Renders

[](#renders)

- Accordion
- Tabs

Default Functions
-----------------

[](#default-functions)

> The below functions are used to set the default values before starting to code

### Helpers

[](#helpers-1)

- #### Cookie

    [](#cookie)

    - SetExpireInUnix(`int $unix`)
    - SetExpireInDays(`int $days`)
    - SetPrefix(`string $prefix`)
    - SetPath(`string $path`)
    - SetDomain(`string $domain`)
    - SetSecure(`bool $secure`)
    - SetHttpOnly(`bool $httpOnly`)
- #### MetaSeo

    [](#metaseo)

    - AddToMetaArray(`string $key, array $array`)
    - AddToPreHeadArray(`string $key, string $text`)
    - AddToPostHeadArray(`string $key, string $text`)
    - SetClientName(`string $var`)
    - SetPreTitle(`string $var`)
    - SetPostTitle(`string $var`)
    - SetTitle(`string $var`)
    - SetAuthor(`string $var`)
    - SetKeywords(`string $var`)
    - SetDescription(`string $var`)
    - SetPhoto(`string $var`)
    - SetUrl(`string $var`)
    - SetRobots(`bool $isLive`)
    - SetRevisitAfter(`string $var`)
    - SetFavicon(`string $var`)
    - SetContentType(`string $var`)
    - SetXuaCompatible(`string $var`)
    - SetViewport(`string $var`)
    - SetGoolgeSiteVerification(`string $var`)
    - SetCopyright(`string $var`)
    - SetAppleMobileWebAppCapable(`string $var`)
    - SetAppleMobileWebAppStatusBarStyle(`string $var`)
    - SetFacebookType(`string $var`)
    - SetFacebookAppId(`string $var`)
    - SetFacebookAdmins(`string $var`)
    - SetTwitterCard(`string $var`)
- #### Script

    [](#script)

    - AddFile(`string $key, string $file`)
    - AddScript(`string $key, string $script`)
    - GetFilesIncludes()
- #### ServerCache

    [](#servercache)

    - SetVersion(`string $version`)
    - SetCacheFolder(`string $cacheFolder`)
    - SetVersionFolder(`string $versionFolder`)
- #### Style

    [](#style)

    - AddFile(`string $key, string $file`)
    - AddStyle(`string $key, string $style`)
    - GetFilesIncludes()

### Microservices

[](#microservices-1)

- ### Notification

    [](#notification)

    - Models
        - EmailConfiguration
            - setHost(`string $host`)
            - setPort(`string $port`)
            - setUsername(`string $username`)
            - setPassword(`string $password`)
            - setEncryption(`string $encryption`)
            - setFromName(`string $from`)
            - setFromEmail(`string $email`)
            - setReplyTo(`string $replyTo`)
- #### Language

    [](#language-1)

    - Helpers
        - Language
            - SetDefault(`string $var`)
            - SetActive(`string $var`)
        - Translate
            - AddDefaults()
            - AddCustomDir(`string $customDir`)
- #### Media

    [](#media-1)

    - SetMediaFolder(`string $var`)
    - SetUploadDir(`string $var`)
    - SetMediaRoot(`string $var`)
    - SetWebsiteVersion(`string $var`)

To Revisit
----------

[](#to-revisit)

- MachineInfo
    - GetIpInfo

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.3% 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 ~17 days

Total

4

Last Release

1018d ago

PHP version history (2 changes)v1.2.6PHP &gt;=8.0

v1.2.9PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fac87a4c9375482322dd821e456e571cfec33eba5a994a94c0b434392270c84?d=identicon)[rawadymario](/maintainers/rawadymario)

---

Top Contributors

[![hadi-darwish](https://avatars.githubusercontent.com/u/112479066?v=4)](https://github.com/hadi-darwish "hadi-darwish (399 commits)")[![rawadymario](https://avatars.githubusercontent.com/u/17738813?v=4)](https://github.com/rawadymario "rawadymario (310 commits)")

---

Tags

phpservices

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dgsplash-php-services/health.svg)

```
[![Health](https://phpackages.com/badges/dgsplash-php-services/health.svg)](https://phpackages.com/packages/dgsplash-php-services)
```

###  Alternatives

[utopia-php/messaging

A simple, light and advanced PHP messaging library

23187.5k4](/packages/utopia-php-messaging)

PHPackages © 2026

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