PHPackages                             chinleung/laravel-weekday - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. chinleung/laravel-weekday

ActiveLibrary[Localization &amp; i18n](/categories/localization)

chinleung/laravel-weekday
=========================

A wrapper for chinleung/php-weekday.

v2.0.1(5y ago)08.1kMITPHPPHP ^7.1CI failing

Since Jul 31Pushed 5y agoCompare

[ Source](https://github.com/chinleung/laravel-weekday)[ Packagist](https://packagist.org/packages/chinleung/laravel-weekday)[ Docs](https://github.com/chinleung/laravel-weekday)[ RSS](/packages/chinleung-laravel-weekday/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Laravel Weekday
===============

[](#laravel-weekday)

[![Latest Version on Packagist](https://camo.githubusercontent.com/abd1a13c08616412c2832473c71512d61759266d9f249ea0b2a113e6ef2d5f5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696e6c65756e672f6c61726176656c2d7765656b6461792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chinleung/laravel-weekday)[![Build Status](https://camo.githubusercontent.com/39cca716223ae9b126f33c1fe3de3466855791873106d42a28a725727f6e24bc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6368696e6c65756e672f6c61726176656c2d7765656b6461792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/chinleung/laravel-weekday)[![Quality Score](https://camo.githubusercontent.com/04898b3ae24179c7616c6fa1e669d17120a7527d5bc244ed7be6b9cdecf127ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6368696e6c65756e672f6c61726176656c2d7765656b6461792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/chinleung/laravel-weekday)[![Total Downloads](https://camo.githubusercontent.com/37d314257b19ffc1b2bbd75de014268b1d1390ffad70507ea781f18ca6a2c129/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696e6c65756e672f6c61726176656c2d7765656b6461792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chinleung/laravel-weekday)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require chinleung/laravel-weekday
```

Usage
-----

[](#usage)

### Retrieve a name from a value

[](#retrieve-a-name-from-a-value)

```
Weekday::name(0); // Sunday
```

### Retrieving a name from a value for a different locale

[](#retrieving-a-name-from-a-value-for-a-different-locale)

```
Weekday::name(1, 'fr'); // Lundi
```

### Retrieving a value from a name

[](#retrieving-a-value-from-a-name)

```
Weekday::value('Sunday'); // 0
```

### Retrieving a value from a name for a different locale

[](#retrieving-a-value-from-a-name-for-a-different-locale)

```
Weekday::value('Dimanche', 'fr'); // 0
```

### Retrieving all names for a locale

[](#retrieving-all-names-for-a-locale)

```
Weekday::names('en');
```

### Changing the locale of an instance

[](#changing-the-locale-of-an-instance)

```
Weekday::name(0)->to('fr')->getName(); // Dimanche
```

### Retrieving the PhpWeek instance:

[](#retrieving-the-phpweek-instance)

```
// Object of \ChinLeung\PhpWeek\PhpWeek with Sunday and set to locale of the application.
Weekday::parse('Sunday')->getInstance();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chin Leung](https://github.com/chinleung)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

1985d ago

Major Versions

v1.0.2 → v2.0.02020-04-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/40590fe8b8c82dfac2530c6f0c0c39dd1dded4c3ad136e15ef2cf3bb20304dad?d=identicon)[ChinLeung](/maintainers/ChinLeung)

---

Top Contributors

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

---

Tags

laravellocalizationtranslationweekdaylocalizationchinleunglaravel-weekdayweekdays

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chinleung-laravel-weekday/health.svg)

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

###  Alternatives

[chinleung/laravel-multilingual-routes

A package to register multilingual routes.

442195.4k2](/packages/chinleung-laravel-multilingual-routes)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[themsaid/laravel-langman

Manage language files with ease.

871307.5k11](/packages/themsaid-laravel-langman)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

80687.6k](/packages/outhebox-laravel-translations)[tio/laravel

Add this package to localize your Laravel application (PHP, JSON or GetText).

170318.5k](/packages/tio-laravel)

PHPackages © 2026

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