PHPackages                             mehedimi/new-instance - 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. mehedimi/new-instance

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

mehedimi/new-instance
=====================

A package to chain class method with out storing a variable

1.0(4y ago)02MITPHP

Since Jul 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mehedimi/new-instance)[ Packagist](https://packagist.org/packages/mehedimi/new-instance)[ RSS](/packages/mehedimi-new-instance/feed)WikiDiscussions master Synced 1w ago

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

New Instance
============

[](#new-instance)

Create new instance of a class and chain method without storing in variable.

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

[](#installation)

To install this package via `composer`, just run the following command on your terminal.

```
composer require mehedimi/new-instance
```

Uses
----

[](#uses)

Just use the `Mehedi\NewInstance\NewInstance` trait in your any PHP class

```
