PHPackages                             lfbn/json-resume-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lfbn/json-resume-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

lfbn/json-resume-validator
==========================

Validate your JSON Resume

0.0.5(5y ago)292MITPHPPHP ^7.3CI failing

Since Nov 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lfbn/json-resume-validator)[ Packagist](https://packagist.org/packages/lfbn/json-resume-validator)[ RSS](/packages/lfbn-json-resume-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

JSON Resume Validator
=====================

[](#json-resume-validator)

This is a package that validates if a Resume is in JSON Resume format. It also validates if any desired properties are not empty.

The validations that make are:

- If complies with JSON Schema of JSON Resume.
- It has certain fields filled in. This is configurable.
- If the country code (basics.countryCode) is in ISO-3166-1 ALPHA-2 format. If this field is empty, is not validated.

Installing
----------

[](#installing)

```
composer require lfbn/json-resume-validator

```

Usage
-----

[](#usage)

### As a CLI

[](#as-a-cli)

Just clone the project, and run. Follow the instructions.

```
./bin/jr-validate

```

### In your project

[](#in-your-project)

First, install it, using composer:

```
composer require lfbn/json-resume-validator

```

Then, create an instance, and call the isValid() method.

```
$path = 'json_resume.json';

$validator = Lfbn\JsonResumeValidator\JsonResumeValidator::load($path);

echo 'Is valid? '.$validator->isValid();
```

Encapsulate the isValid() method inside a try/catch. This method will return true if the file is valid or throws an exception if is not valid.

The name of the exception has the description of the error it has.

#### Your mandatory fields

[](#your-mandatory-fields)

You can, optionally, define the mandatory fields you want.

Just define them using dot notation.

```
$config = [
    'mandatory_fields' => [
        'basics.name',
        'basics.email',
        'basics.phone',
        'basics.summary'
    ]
];

$path = 'json_resume.json';
$resume = Lfbn\JsonResumeValidator\JsonResumeValidator::load($path, $config);

// It returns true, or it throws an Exception, is it fails in any Validation.
$resume->isValid();
```

Tests
-----

[](#tests)

This package has tests that use several JSON files to test if the behavior is as expected.

To execute them, just run:

```
composer tests
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

4

Last Release

2000d ago

PHP version history (2 changes)0.0.2PHP ^7.2

0.0.5PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6152567?v=4)[Luís Nóbrega](/maintainers/lfbn)[@lfbn](https://github.com/lfbn)

---

Tags

jsonjsonresumejson-schemajson-resume

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lfbn-json-resume-validator/health.svg)

```
[![Health](https://phpackages.com/badges/lfbn-json-resume-validator/health.svg)](https://phpackages.com/packages/lfbn-json-resume-validator)
```

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[geraintluff/jsv4

A (coercive) JSON Schema v4 Validator for PHP

115455.2k4](/packages/geraintluff-jsv4)

PHPackages © 2026

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