PHPackages                             mrjulio/rapture-helper - 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. mrjulio/rapture-helper

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

mrjulio/rapture-helper
======================

Rapture helper component

v1.0.2(8y ago)014MITPHPPHP &gt;=7.0.4

Since Jun 15Pushed 8y agoCompare

[ Source](https://github.com/mrjulio/rapture-helper)[ Packagist](https://packagist.org/packages/mrjulio/rapture-helper)[ Docs](http://rapture.iuliann.ro)[ RSS](/packages/mrjulio-rapture-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Rapture Helper component
========================

[](#rapture-helper-component)

[![PhpVersion](https://camo.githubusercontent.com/e4c64a56977ee968a54eefdf914344ee00dc9a42c47755b9334cb4a862e57123/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](#)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](#)

Rapture Helper has multiple classes for helping with common tasks like:

- Arrays manipulation
- Strings manipulation
- Country codes
- Frontend assets collection
- Time/Date
- Render HTML elements
- Locale setup for Gettext

Requirements
------------

[](#requirements)

- PHP v7.0

Install
-------

[](#install)

```
composer require mrjulio/rapture-helper

```

Quick start
-----------

[](#quick-start)

```
# Assets
$assets = new Assets();
$assets->add(['styles' => 'css/main.css', 'script' => ['js/jquery.js', 'js/main.js']]);
$assets->renderCss();
//
$assets->renderJs();
//
//

# Time
$t = Time::now();
// getters
$t->getYear(); 			// .. $t->getSecond()
$t->getDayOfWeek(); 	// 1=Monday...7=Sunday
$t->getDayOfYear(); 	// 0 through 365
$t->getWeekOfYear();	// ISO-8601 week number of year, weeks starting on Monday
$t->getDaysInMonth();	// 28..31
$t->getQuarter();		// 1..4
// checks
$t->isWeekend();
$t->isWeekday();
$t->isToday();
$t->isYesterday();
$t->isTomorrow();
$t->isNextWeek();
$t->isLastMonth();
$t->isCurrentYear();	//etc..
// modifiers start with 'go'
$t = Time::go()->goBack('1 day')->goToNext(Time::MONDAY)->goToStartOf(Time::DAY);
// format
$t->toDate(); // Y-m-d
$t->toTime(); // H:i:s
$t->toDateTime(): // Y-m-d H:i:s

# Strings
$enc  = Strings::encrypt('secret', 'secret-key');	// not for production
$dec  = Strings::decrypt($enc, 'secret-key');
$slug = Strings::sluggify('Hello world!'); // hello-world
```

About
-----

[](#about)

### Author

[](#author)

Iulian N. `rapture@iuliann.ro`

### Testing

[](#testing)

```
cd ./test && phpunit

```

### License

[](#license)

Rapture Helper is licensed under the MIT License - see the `LICENSE` file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~78 days

Total

3

Last Release

3097d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c050bc4fe5100fc158eaa33a3adbdbf3464a4234b18ac31723d27371b3a56334?d=identicon)[MrJulio](/maintainers/MrJulio)

---

Top Contributors

[![mrjulio](https://avatars.githubusercontent.com/u/1187463?v=4)](https://github.com/mrjulio "mrjulio (5 commits)")

---

Tags

library

### Embed Badge

![Health badge](/badges/mrjulio-rapture-helper/health.svg)

```
[![Health](https://phpackages.com/badges/mrjulio-rapture-helper/health.svg)](https://phpackages.com/packages/mrjulio-rapture-helper)
```

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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