PHPackages                             serafim/symbol - 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. serafim/symbol

Abandoned → [https://github.com/phpfn/symbol](/?search=https%3A%2F%2Fgithub.com%2Fphpfn%2Fsymbol)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

serafim/symbol
==============

The Symbol type PHP implementation

1.0.0(6y ago)1293↓50%1MITPHP &gt;=7.1.3

Since Jul 4Pushed 6y agoCompare

[ Source](https://github.com/SerafimArts/Symbol)[ Packagist](https://packagist.org/packages/serafim/symbol)[ Docs](https://github.com/SerafimArts/Symbol)[ RSS](/packages/serafim-symbol/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Symbol
======

[](#symbol)

 [![Travis CI](https://camo.githubusercontent.com/2a29bb01df9cb438186551cc1a70f8a2f5c6db78ba53eb18f9959b6dccd13871/68747470733a2f2f7472617669732d63692e6f72672f5365726166696d417274732f53796d626f6c2e737667)](https://travis-ci.org/SerafimArts/Symbol) [![](https://camo.githubusercontent.com/33285a4f09926d5e76c8aaee3d02cd971628225d0a50be5f64cf222e75589ab1/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34336639316563323734303730383162386435312f746573745f636f766572616765)](https://codeclimate.com/github/SerafimArts/Symbol/test_coverage) [![](https://camo.githubusercontent.com/9b5c857f5f3ef12f2237f1f3f1d491444c66b7bd0cd55215ffa41d9ff049f6c3/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34336639316563323734303730383162386435312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/SerafimArts/Symbol/maintainability)

 [![PHP 7.1+](https://camo.githubusercontent.com/82f44fe3f392d956a0a6c330c62d48cfd37cc0fb6e21c39dad8f86c6c356dd30/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312b2d3666346361352e737667)](https://packagist.org/packages/serafim/symbol) [![Latest Stable Version](https://camo.githubusercontent.com/b696e5f5a8e22d417f401fdb5b8b76d76f0cb4828dddc63c55f95d49764ae149/68747470733a2f2f706f7365722e707567782e6f72672f7365726166696d2f73796d626f6c2f76657273696f6e)](https://packagist.org/packages/serafim/symbol) [![Total Downloads](https://camo.githubusercontent.com/77d8af7c359cb114c2c2e07d313c7496f9f3ff3319a6670593cc9227f9ea2983/68747470733a2f2f706f7365722e707567782e6f72672f7365726166696d2f73796d626f6c2f646f776e6c6f616473)](https://packagist.org/packages/serafim/symbol) [![License MIT](https://camo.githubusercontent.com/3002d942e75b3b4fa1f9da16fab2bd7f11c7ade92c4412e8ade40544eb6c6d54/68747470733a2f2f706f7365722e707567782e6f72672f7365726166696d2f73796d626f6c2f6c6963656e7365)](https://raw.githubusercontent.com/SerafimArts/Symbol/master/LICENSE.md)

Symbol is a special primitive data type, indicating an unique identifier. This `symbol` library implementation is similar to alternative types in:

1. Symbols in JavaScript: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)
2. Symbols in Ruby:
3. Symbols in TypeScript:
4. Atoms in Erlang: [http://erlang.org/doc/reference\_manual/data\_types.html#atom](http://erlang.org/doc/reference_manual/data_types.html#atom)
5. ...e.g.

Usage
-----

[](#usage)

In order to create a new symbol data type, you should use the `Symbol::create()` method or call the global `symbol()`helper function.

```
