https://github.com/pmvc-plugin/guid
Id of things
https://github.com/pmvc-plugin/guid
guid
Last synced: 16 days ago
JSON representation
Id of things
- Host: GitHub
- URL: https://github.com/pmvc-plugin/guid
- Owner: pmvc-plugin
- Created: 2015-07-05T05:17:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T03:56:40.000Z (over 4 years ago)
- Last Synced: 2025-02-27T03:20:41.475Z (over 1 year ago)
- Topics: guid
- Language: PHP
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/guid)
[](https://packagist.org/packages/pmvc-plugin/guid)
[](https://circleci.com/gh/pmvc-plugin/guid/tree/master)
[](https://packagist.org/packages/pmvc-plugin/guid)
[](https://packagist.org/packages/pmvc-plugin/guid)
Id of things
===============
## GetModel Sample
* Algolia
* https://github.com/pmvc-plugin/algolia/blob/master/algolia.php
* Ssdb
* https://github.com/pmvc-plugin/ssdb/blob/master/ssdb.php
* Others
* https://github.com/search?q=topic:pmvc-guid
## Global Table
* GlobalKey
* format: guid->key
* https://github.com/pmvc-plugin/guid/blob/master/src/models/GlobalGuidKey.php
* Get Key
```
\PMVC\plug('guid')->manager()->getKey($guid);
```
* GlobalGuid
* format: key->guid
* https://github.com/pmvc-plugin/guid/blob/master/src/models/GlobalKeyGuid.php
* Get Guid
```
\PMVC\plug('guid')->manager()->getGuid($key);
```
## Install with Composer
### 1. Download composer
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php
### 2. Install by composer.json or use command-line directly
#### 2.1 Install GUID by adding a dependency to pmvc-plugin/guid to the require section of your project's composer.json configuration file.
* vim composer.json
```
{
"require": {
"pmvc-plugin/guid": "dev-master"
}
}
```
* php composer.phar install
#### 2.2 Or use composer command-line
* php composer.phar require pmvc-plugin/guid