PHPackages                             fredbradley/trailingslashit - 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. fredbradley/trailingslashit

ActiveProject

fredbradley/trailingslashit
===========================

Brings in a couple of useful WordPress functions to any other PHP project

v0.0.4(4y ago)050MITPHPPHP ^7.4|^8.0

Since Jun 11Pushed 4y agoCompare

[ Source](https://github.com/fredbradley/trailingslashit)[ Packagist](https://packagist.org/packages/fredbradley/trailingslashit)[ RSS](/packages/fredbradley-trailingslashit/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Trailingslashit
===============

[](#trailingslashit)

Really, nothing that clever. Two functions lifted out of the [WordPress source code](https://developer.wordpress.org/reference/functions/trailingslashit/) that I personally, find very useful and reuse in other projects, which perhaps aren't WordPress.

This packages adds `trailingslashit(string $var)` and `untrailingslashit(string $var)` as high level functions, if they don't already exist.

Installation
------------

[](#installation)

```
composer require fredbradley/trailingslashit

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Every ~104 days

Total

4

Last Release

1482d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639226?v=4)[Fred Bradley](/maintainers/fredbradley)[@fredbradley](https://github.com/fredbradley)

---

Top Contributors

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

---

Tags

wordpresswpslashslashestrailingslashitrtrim

### Embed Badge

![Health badge](/badges/fredbradley-trailingslashit/health.svg)

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

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[wecodemore/wpstarter

Composer plugin to easily build WordPress websites entirely managed via Composer.

253195.2k6](/packages/wecodemore-wpstarter)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

31389.9k](/packages/gotoandplay-gravityforms-composer-installer)[seravo/seravo-plugin

Enhances WordPress with Seravo.com specific features and integrations

40162.2k1](/packages/seravo-seravo-plugin)[devgeniem/wp-sanitize-accented-uploads

Replaces accents from future uploads and has wp-cli command which you can use to sanitize current content.

2798.4k5](/packages/devgeniem-wp-sanitize-accented-uploads)

PHPackages © 2026

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