PHPackages                             barbosa/hackpack - 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. barbosa/hackpack

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

barbosa/hackpack
================

Invoking objects in function style

0.1(9y ago)216GLP-3.0PHPPHP &gt;=5.4

Since Nov 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/barbosa89/hackpack)[ Packagist](https://packagist.org/packages/barbosa/hackpack)[ RSS](/packages/barbosa-hackpack/feed)WikiDiscussions master Synced 2mo ago

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

HackPack: This package allows calling classes in function style, through the use of a PHP hack.
===============================================================================================

[](#hackpack-this-package-allows-calling-classes-in-function-style-through-the-use-of-a-php-hack)

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

[](#installation)

To install via composer (), place the following in your composer.json file:

```
{
    "require": {
        "barbosa/hackpack": "dev-master"
    }
}

```

or download package from github.com:

```
http://github.com/barbosa89/hackpack

```

Configuration
-------------

[](#configuration)

Consider the following folder structure:

```
/project
    /src
        MainClass.php
        Router.php
        TextProcessing.php
        Request.php
        services.php
    /test

```

The services.php file, returns an array with an alias and the corresponding namespace and the following sintax:

```
