PHPackages                             nathanmac/laravel-guid - 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. nathanmac/laravel-guid

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

nathanmac/laravel-guid
======================

Simple GUID generator Package for Laravel 4

105.8k↓42.9%2[2 issues](https://github.com/nathanmac/laravel-guid/issues)PHP

Since Jan 14Pushed 10y ago2 watchersCompare

[ Source](https://github.com/nathanmac/laravel-guid)[ Packagist](https://packagist.org/packages/nathanmac/laravel-guid)[ RSS](/packages/nathanmac-laravel-guid/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-guid
============

[](#laravel-guid)

[![Build Status](https://camo.githubusercontent.com/69061fcef51f45eebb4a8ea1e556c643f89c0442d2b96dfb6a35cc4af11014eb/68747470733a2f2f7472617669732d63692e6f72672f6e617468616e6d61632f6c61726176656c2d677569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nathanmac/laravel-guid)[![Still Maintained](https://camo.githubusercontent.com/341b258647d8394141ca5bcc42b3613535cbbbaf7149e16c3095383963fd2daf/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f6e617468616e6d61632f6c61726176656c2d677569642e706e67)](http://stillmaintained.com/nathanmac/laravel-guid)

Simple GUID generator Package for Laravel 4

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `Nathanmac/laravel-guid`.

```
"require": {
	"nathanmac/laravel-guid": "dev-master"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Nathanmac\GUID\GUIDServiceProvider'

```

##### Generate GUID

[](#generate-guid)

```
echo "GUID: " . GUID::generate(); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
```

##### Generate GUID with a salt value

[](#generate-guid-with-a-salt-value)

```
echo "GUID: " . GUID::generate('custom salt value'); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
```

##### Generate GUID with braces

[](#generate-guid-with-braces)

```
echo "GUID: " . GUID::generate(false, true); // GUID: {582B5733-8AE1-79D2-DB8F-5720ECBE4306}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

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

---

Top Contributors

[![martinlindhe](https://avatars.githubusercontent.com/u/181531?v=4)](https://github.com/martinlindhe "martinlindhe (1 commits)")[![nathanmac](https://avatars.githubusercontent.com/u/3205902?v=4)](https://github.com/nathanmac "nathanmac (1 commits)")

### Embed Badge

![Health badge](/badges/nathanmac-laravel-guid/health.svg)

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

###  Alternatives

[webman/captcha

Captcha generator

1495.9k35](/packages/webman-captcha)[v-matsuk/time-overlap-calculator

Time overlap calculator

1115.6k1](/packages/v-matsuk-time-overlap-calculator)

PHPackages © 2026

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