PHPackages                             tasoft/operation-overload - 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. tasoft/operation-overload

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

tasoft/operation-overload
=========================

v0.8.1(3y ago)010MITPHPPHP &gt;7.2

Since Mar 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tasoftch/php-extension-operation-overload)[ Packagist](https://packagist.org/packages/tasoft/operation-overload)[ RSS](/packages/tasoft-operation-overload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

php user operation overloading
==============================

[](#php-user-operation-overloading)

Did you ever want to add, subtract or multiply objects?
This is a rfc on [https://wiki.php.net/rfc/userspace\_operator\_overloading](https://wiki.php.net/rfc/userspace_operator_overloading)

I've created an extension that enables this functionality.

### Installation

[](#installation)

```
$ cd ~
$ git clone https://github.com/tasoftch/php-extension-operation-overload.git
$ cd php-extension-operation-overload/ext
$ phpize
$ ./configure --enable-tasoft_usr_op_overload
$ make
$ sudo make install

```

This compiles the source on your machine.
Next find the php.ini file

```
$ php --ini

```

Will list scanned ini files.
Add the following line to that php.ini file: `extension=tasoft_usr_op_overload`

```
