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

ActiveLibrary

phpfn/symbol
============

The Symbol type implementation

2.0.1(5y ago)792↓100%11MITPHPPHP &gt;=7.4CI failing

Since Jul 4Pushed 5y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (4)Used By (1)

Symbol
======

[](#symbol)

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.

Installation
------------

[](#installation)

Library can be installed into any PHP application:

- Using [`Composer`](https://getcomposer.org/) dependency manager
- [The Force](https://www.youtube.com/watch?v=o2we_B6hDrY) for the Jedi Developers

```
$ composer require phpfn/symbol
```

In order to access library make sure to include `vendor/autoload.php`in your file.

```
