PHPackages                             shopbase/globalizer - 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. shopbase/globalizer

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

shopbase/globalizer
===================

Library to globalize classes

1.0.0.0(7y ago)12MITPHPPHP ^7.1.3

Since Jan 13Pushed 7y agoCompare

[ Source](https://github.com/ThemePoint/Globalizer)[ Packagist](https://packagist.org/packages/shopbase/globalizer)[ Docs](https://www.themepoint.de)[ RSS](/packages/shopbase-globalizer/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Globalizer
==========

[](#globalizer)

This Library is used to globalize Class instances.

Usage
=====

[](#usage)

To initialize, get, reset and delete the globalizer there are several functions inclued.

```
\Shopbase\Globalizer\Globalizer::init(); // initialize the globalizer and add a gobal instance
\Shopbase\Globalizer\Globalizer::get(); // get the global instance
\Shopbase\Globalizer\Globalizer::reset(); // reset the global instance
\Shopbase\Globalizer\Globalizer::delete(); // delete the global instance
```

To handle the instances of classes which are saved in globalizer there are the following functions inclued

```
setClass(string $class) // Set new global instance of an class
getClass(string $class) // get global instance of an class
removeClass(string $class) // remove global instance of an class
syncWithGlobal() // sync global instances
```

Examples
========

[](#examples)

```
class Foo
{
    protected $bar = 'FooBar';

    public function getBar() : string
    {
        return $this->bar;
    }
}

\Shopbase\Globalizer\Globalizer::init()->setClass('Foo');

echo \Shopbase\Globalizer\Globalizer::get()->getClass('Foo');

// Result will be: 'FooBar';
```

[![Donate](https://camo.githubusercontent.com/b57c445af971e3e99c2d0ccdbf4fa7faa4358ba27fecc8f68459b30289f82eda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q98R2QXXMTUF6&source=url)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

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

2679d ago

### Community

Maintainers

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

---

Tags

phpglobalglobalize

### Embed Badge

![Health badge](/badges/shopbase-globalizer/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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