Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micropackage/singleton
Convenient Singleton class implementation
https://github.com/micropackage/singleton
bracketspace composer-library micropackage singleton wordpress
Last synced: 2 months ago
JSON representation
Convenient Singleton class implementation
- Host: GitHub
- URL: https://github.com/micropackage/singleton
- Owner: micropackage
- License: mit
- Created: 2020-01-06T17:54:40.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-06-23T08:46:03.000Z (over 1 year ago)
- Last Synced: 2024-09-28T11:17:07.258Z (4 months ago)
- Topics: bracketspace, composer-library, micropackage, singleton, wordpress
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Singleton
[![BracketSpace Micropackage](https://img.shields.io/badge/BracketSpace-Micropackage-brightgreen)](https://bracketspace.com)
[![Latest Stable Version](https://poser.pugx.org/micropackage/singleton/v/stable)](https://packagist.org/packages/micropackage/singleton)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/micropackage/singleton.svg)](https://packagist.org/packages/micropackage/singleton)
[![Total Downloads](https://poser.pugx.org/micropackage/singleton/downloads)](https://packagist.org/packages/micropackage/singleton)
[![License](https://poser.pugx.org/micropackage/singleton/license)](https://packagist.org/packages/micropackage/singleton)
## 💾 Installation
``` bash
composer require micropackage/singleton
```## 🕹 Usage
```php
use Micropackage\Singleton\Singleton;class Example extends Singleton {}
Example::get();
```## 📦 About the Micropackage project
Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.
The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.
Micropackages are maintained by [BracketSpace](https://bracketspace.com).
## 📖 Changelog
[See the changelog file](./CHANGELOG.md).
## 📃 License
This software is released under MIT license. See the [LICENSE](./LICENSE) file for more information.