PHPackages                             globalxtreme/parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. globalxtreme/parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

globalxtreme/parser
===================

GlobalXtreme Parser Pattern

2.0.0(2y ago)01971MITPHPPHP 8.\*

Since Jul 14Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (17)Used By (1)

GlobalXtreme Parser
===================

[](#globalxtreme-parser)

[![Version](https://camo.githubusercontent.com/51983a06b79256f52cc01ac58c608a3349d7d242eb53a18b2ba3125bea1b2d47/687474703a2f2f706f7365722e707567782e6f72672f676c6f62616c787472656d652f7061727365722f76657273696f6e)](https://packagist.org/packages/globalxtreme/parser)[![Total Downloads](https://camo.githubusercontent.com/d2b3962c4ce0c56ab54164e865d4ab6c54dfddda5f8c965925c318362e711c58/687474703a2f2f706f7365722e707567782e6f72672f676c6f62616c787472656d652f7061727365722f646f776e6c6f616473)](https://packagist.org/packages/globalxtreme/parser)[![License](https://camo.githubusercontent.com/14c8743d511d360d55c84dffe97182490a1ca81c78a424e7043ffff1546c1ccf/687474703a2f2f706f7365722e707567782e6f72672f676c6f62616c787472656d652f7061727365722f6c6963656e7365)](https://packagist.org/packages/globalxtreme/parser)

### Install with composer

[](#install-with-composer)

To install with [Composer](https://getcomposer.org/), simply require the latest version of this package.

```
composer require globalxtreme/parser
```

You can install parser class with command.

```
php artisan make:gx-parser {{ class }}
```

Using
-----

[](#using)

- Install parser class. ```
    php artisan make:gx-parser Custom\CustomParser
    ```
- You can add custom function in your parser ```
    use GlobalXtreme\Parser\BaseParser;

    class CustomParser extends BaseParser
    {
        use HasParser;

        public function tests($collections)
        {
            if (!$collections || count($collections) == 0) {
                return null;
            }

            $data = [];
            foreach ($collections as $collection) {
                $data[] = $collection->toArray();
            }

            return $data;
        }
    }
    ```
- Register your parser to model. ```
    use App\Packages\Parser\Custom\CustomParser;
    use GlobalXtreme\Parser\Trait\HasParser;

    class Custom extends Model
    {
        use HasParser;

        public $parserClass = CustomParser::class;
    }
    ```
- Using parser with controller. ```
    use App\Http\Controllers\Controller;
    use App\Models\Custom;
    use App\Packages\Parser\Custom\CustomParser;
    use GlobalXtreme\Parser\Parser;

    class CustomController extends Controller
    {
        public function testing()
        {
            // Get more than one data
            $customs = Custom::get();

            // Display data using CustomParser and your custom function
            $results = CustomParser::get($customs);
            $results = CustomParser::tests($customs);

            // Display data using parser class from package
            // with default function or custom function from CustomParser
            $results = Parser::get($customs);
            $results = Parser::tests($customs);

            // Get one data
            $custom = Custom::first();

            // Display data using custom parser
            $result = CustomParser::first($custom);

            // Display data using parser class from package
            $result = Parser::first($custom);
        }
    }
    ```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Recently: every ~150 days

Total

16

Last Release

738d ago

Major Versions

1.1.3 → v2.0.x-dev2024-05-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/17e52063ab79a90d8f0d74b88a69b32f26321d910c7808ac934ad704c26f4da2?d=identicon)[globalxtreme](/maintainers/globalxtreme)

---

Top Contributors

[![yuswa-arba](https://avatars.githubusercontent.com/u/34733910?v=4)](https://github.com/yuswa-arba "yuswa-arba (15 commits)")

### Embed Badge

![Health badge](/badges/globalxtreme-parser/health.svg)

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

###  Alternatives

[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[rajentrivedi/tokenizer-x

TokenizerX calculates required tokens for given prompt

91214.0k3](/packages/rajentrivedi-tokenizer-x)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

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