PHPackages                             saxulum/saxulum-hint - 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. saxulum/saxulum-hint

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

saxulum/saxulum-hint
====================

Saxulum Hint

1.0.0(11y ago)05521MITPHPPHP &gt;=5.3

Since Sep 28Pushed 10y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-hint)[ Packagist](https://packagist.org/packages/saxulum/saxulum-hint)[ RSS](/packages/saxulum-saxulum-hint/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

saxulum-hint
============

[](#saxulum-hint)

[![Build Status](https://camo.githubusercontent.com/e75218183585c2e11aa0109e919792056a015e5d8a55781dae5b054a9a5d4c52/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d68696e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-hint)[![Total Downloads](https://camo.githubusercontent.com/2cea185da36822a41a41c1aad3eca65f207e7613a98115bea76b355eff06a9f3/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d68696e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-hint)[![Latest Stable Version](https://camo.githubusercontent.com/0fce44c9c12bb7e3d4d92affddbe76cf08b301c1820e002274e27960eb912661/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d68696e742f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-hint)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/36b23e6c581711547138b5303965a911286fc024ea7baefb7a0b113d52a1eb19/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736178756c756d2f736178756c756d2d68696e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/saxulum/saxulum-hint/?branch=master)

Features
--------

[](#features)

- Hint scalars, arrays and objects

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

[](#requirements)

- PHP 5.3+

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

[](#installation)

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-hint](https://packagist.org/packages/saxulum/saxulum-hint).

Usage
-----

[](#usage)

#### Without a hint

[](#without-a-hint)

```
Hint::validate(false) // true
Hint::validate(true) // true
Hint::validate(1) // true
Hint::validate(1.0) // true
Hint::validate('1.0') // true
Hint::validate('test') // true
Hint::validate(array()) // true
Hint::validate(new \stdClass) // true

```

#### Hint boolean

[](#hint-boolean)

```
Hint::validate(null, Hint::BOOL) // true
Hint::validate(true, Hint::BOOL) // true
Hint::validate(null, Hint::BOOL, false) // false

```

#### Hint int

[](#hint-int)

```
Hint::validate(null, Hint::INT) // true
Hint::validate(1, Hint::INT) // true
Hint::validate(null, Hint::INT, false) // false

```

#### Hint float

[](#hint-float)

```
Hint::validate(null, Hint::FLOAT) // true
Hint::validate(1.0, Hint::FLOAT) // true
Hint::validate(null, Hint::FLOAT, false) // false

```

#### Hint numeric

[](#hint-numeric)

```
Hint::validate(null, Hint::NUMERIC) // true
Hint::validate('1.0', Hint::NUMERIC) // true
Hint::validate(null, Hint::NUMERIC, false) // false

```

#### Hint string

[](#hint-string)

```
Hint::validate(null, Hint::STRING) // true
Hint::validate('name', Hint::STRING) // true
Hint::validate(null, Hint::STRING, false) // false

```

#### Hint array

[](#hint-array)

```
Hint::validate(null, Hint::ARR) // false
Hint::validate(array, Hint::ARR) // true
Hint::validate(null, Hint::ARR, true) // true

```

#### Hint object

[](#hint-object)

```
Hint::validate(null, '\stdClass') // false
Hint::validate(new \stdClass, '\stdClass') // true
Hint::validate(null, '\stdClass', true) // true

```

#### Hint array/collection values

[](#hint-arraycollection-values)

```
Hint::validate(array(), Hint::BOOL . '[]') // true
Hint::validate(array(true, false), Hint::BOOL . '[]') // true
Hint::validate(array(true, null), Hint::BOOL . '[]') // true
Hint::validate(array('\stdClass', '\stdClass'), '\stdClass[]') // true
Hint::validate(array('\stdClass', null), '\stdClass[]') // false
Hint::validate(array('\stdClass', null), '\stdClass[]', true) // true
Hint::validate(array('\stdClass', 'test'), '\stdClass[]', true) // false

```

Copyright
---------

[](#copyright)

- Dominik Zogg

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4241d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (3 commits)")

---

Tags

saxulumhint

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saxulum-saxulum-hint/health.svg)

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

###  Alternatives

[acquia/drupal-environment-detector

Provides common methods for detecting the current Acquia environment

105.9M19](/packages/acquia-drupal-environment-detector)[te7a-houdini/laroute

Access Laravels URL/Route helper functions, from JavaScript.

33512.1k](/packages/te7a-houdini-laroute)[php-tui/cassowary

Cassowary constraint solving algorithm implementation

21759.9k1](/packages/php-tui-cassowary)

PHPackages © 2026

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