PHPackages                             drupol/anonymize - 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. drupol/anonymize

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

drupol/anonymize
================

Converts an object/class into an anonymous class.

1.1.4(6y ago)114MITPHPPHP &gt;= 7.1.3

Since Sep 19Pushed 6y ago2 watchersCompare

[ Source](https://github.com/drupol/anonymize)[ Packagist](https://packagist.org/packages/drupol/anonymize)[ Docs](https://github.com/drupol/anonymize)[ RSS](/packages/drupol-anonymize/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (7)Versions (10)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/78f9464548d1f26fc4cf607114ef62c7627bf928af250f9e5dcd39b1ab2f0f9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647275706f6c2f616e6f6e796d697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/anonymize)[![GitHub stars](https://camo.githubusercontent.com/2b51ff579123cb7d7736c7e9d3f60c13e412871daff7cfc0fb1a4a0765945346/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f647275706f6c2f616e6f6e796d697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/anonymize)[![Total Downloads](https://camo.githubusercontent.com/fd7f0a4724e7b689ef7191ebd849d5b6a151423f0bdc28cba21e633e7f56cf2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647275706f6c2f616e6f6e796d697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/anonymize)[![Build Status](https://camo.githubusercontent.com/07aafafaeb1f31952e9d6e41d6254b412a22635bf9412c219f0e97e905e21875/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f647275706f6c2f616e6f6e796d697a652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/drupol/anonymize)[![Scrutinizer code quality](https://camo.githubusercontent.com/5f806db3dffe26a35f574c934e57355123f33e8b91b6a034520f634a28c44d68/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f647275706f6c2f616e6f6e796d697a652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/drupol/anonymize/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/635c8007df372ef5d90b866b3ccc6fafcb7df87bf5936987524bb8e3c6cde6cc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f647275706f6c2f616e6f6e796d697a652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/drupol/anonymize/?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/8561ed7784543dba89137fb502ac5b2bbd71e94279122ff0ece8324cbe21bb2b/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f647275706f6c2f616e6f6e796d697a652f6d6173746572)](https://stryker-mutator.github.io)[![License](https://camo.githubusercontent.com/8e6e3c56d8f258d9c41a9ab0dc7fad3af69a26e0cb7b36b51e7cad221fce560a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647275706f6c2f616e6f6e796d697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/anonymize)[![Say Thanks!](https://camo.githubusercontent.com/05c3c1ff30c669596f087c84fa3128739d9a3c5ba0d3537ed0e41ad41553a04e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5361792d7468616e6b732d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://saythanks.io/to/drupol)[![Donate!](https://camo.githubusercontent.com/f2e288c194c16198351c80fcb396a39afb2ae2ccf89c1549c8dc049901151137/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617970616c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://paypal.me/drupol)

Anonymize
=========

[](#anonymize)

Description
-----------

[](#description)

Convert a regular class into an anonymous class.

Features
--------

[](#features)

- Converts public properties and methods into dynamic classes and properties.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1.3

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

[](#installation)

`composer require drupol/anonymize`

Usage
-----

[](#usage)

Using the object:

```
