PHPackages                             veloxia/markup - 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. veloxia/markup

ActiveLibrary

veloxia/markup
==============

Schema markup for Laravel.

v1.0(6y ago)048MITPHPPHP ^7.1CI failing

Since Jan 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/veloxiadev/markup)[ Packagist](https://packagist.org/packages/veloxia/markup)[ Docs](https://github.com/veloxiadev/markup)[ RSS](/packages/veloxia-markup/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

veloxia/markup
==============

[](#veloxiamarkup)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05e67eb62a7590a8cb95bf3285e91ecdf43fe6b6108e38f35153a6293389fa85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76656c6f7869612f6d61726b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/veloxia/markup)[![Build Status](https://camo.githubusercontent.com/c12f40eeaa918be7533296d6ed2e7589d0d2dfd1ed1b30ff2152ab4ea572236b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76656c6f7869616465762f6d61726b75702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/veloxiadev/markup)

Some Schema.org generators made to be used with Laravel.

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

[](#installation)

### Install via Composer

[](#install-via-composer)

```
composer require veloxia/markup
```

### Laravel &lt; 5.4

[](#laravel--54)

Add to *config/app.php*

```
'providers' => [
    ...
    Veloxia\Markup\MarkupServiceProvider::class,
    ...
];

'aliases' => [
    ...
    'Markup' => Veloxia\Markup\Facades\Markup::class,
    ...
];
```

### Newer versions of Laravel

[](#newer-versions-of-laravel)

The Service Provider should be available automatically when the installation is complete. Otherwise try the procedure above.

Usage
-----

[](#usage)

```
// https://schema.org/FAQPage

// either ...
$markup = \Veloxia\Markup\Markup::make('FAQ');

// ... or ...
$markup = Markup::make('FAQ');

// ... then add some data ...
$markup
    ->question("Sunt in culpa qui officia deserunt?")
    ->answer("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");

$markup
    ->question("Casus mixtus cum culpa?")
    ->answer("Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");

// ... and print the results
echo $markup->json();

// with blade you'll need to allow html
// {!! $markup->json() !!}
```

This will output something like:

```

{
    "@context": "https:\/\/schema.org",
    "@type": "FAQPage",
    "mainEntity": [
        {
            "@type": "Question",
            "name": "Sunt in culpa qui officia deserunt?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
            }
        },
        {
            "@type": "Question",
            "name": "Casus mixtus cum culpa?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
            }
        }
    ]
}

```

It's also possible to bulk-insert:

```
// Just one Q/A pair at a time ...
$markup->question("Question here", "Answer here")->json();

// ... or a bigger array
$faq = (new \Veloxia\Markup\Generators\FAQ([
    "Question 1" => "Answer A",
    "Question 2" => "Answer B",
]))->json();
```

### Testing

[](#testing)

```
composer test
```

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

[](#contributing)

Feel free to make changes :)

Credits
-------

[](#credits)

- [Viktor Svensson](https://github.com/viktorsvensson)
- [Veloxia](https://github.com/veloxiadev)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2310d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56674701?v=4)[veloxia](/maintainers/veloxia)[@veloxia](https://github.com/veloxia)

---

Tags

markupveloxia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/veloxia-markup/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[stolz/laravel-html-tidy

HTML Tidy middleware for Laravel

268.7k](/packages/stolz-laravel-html-tidy)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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