PHPackages                             needle-project/common - 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. needle-project/common

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

needle-project/common
=====================

A common set of tools used in NeedleProject libraries

v0.4.0(7y ago)01.4k[1 issues](https://github.com/needle-project/common/issues)MITPHPPHP &gt;=5.5CI failing

Since May 29Pushed 6y ago1 watchersCompare

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

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

[![Codacy Badge](https://camo.githubusercontent.com/8a3fcbd93f27f2273fd1de3bd26e035d308d7a93d3f06ca5fffcf41961ab7581/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3033313437616132303635343433303961373036383662393334326635623030)](https://www.codacy.com/app/needle-project/common?utm_source=github.com&utm_medium=referral&utm_content=needle-project/common&utm_campaign=Badge_Grade)[![SensioLabsInsight](https://camo.githubusercontent.com/e279e62f167113e53ab83500e2bc2b776889733b52056304a88b1176227dcf25/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64643935383530652d386265642d346566652d613766642d3731396634333963663537302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/dd95850e-8bed-4efe-a7fd-719f439cf570)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/68ea230c22a3392dc1154253fe5a8eb5a5fba7b04eae25b1832d7aa10c9e3ab6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6565646c652d70726f6a6563742f636f6d6d6f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/needle-project/common/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/6b8016cfe9f9d4d2cc3f04a62b7cdd1615852250aca6a8355a4a91e2e3827113/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6565646c652d70726f6a6563742f636f6d6d6f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/needle-project/common/?branch=master)[![Build Status](https://camo.githubusercontent.com/affbeb05ec41856480f5d89bc57df675ccb16672399d409c4cf7635703ea695f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6565646c652d70726f6a6563742f636f6d6d6f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/needle-project/common/build-status/master)[![Build Status](https://camo.githubusercontent.com/f1619c97850e3fb28f9fdb09e7709fde846fb7de9f9369245b6dc225557cf1c9/68747470733a2f2f7472617669732d63692e6f72672f6e6565646c652d70726f6a6563742f636f6d6d6f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/needle-project/common)

README
======

[](#readme)

What is Common?
---------------

[](#what-is-common)

Common is a library packed with small re-usable utilities and helpers.

Requirments
-----------

[](#requirments)

For larger usage, minimum version is PHP 5.5

Instalation
-----------

[](#instalation)

```
composer require "needle-project/common"

```

Content
-------

[](#content)

1. WordType convertor - Converts string to `camelCase`, `PascalCase` or `snake_case`
2. ArrayHelper - searches if an array has a key in depth and retrieves the value
3. Error to Exception - convert php errors to Exceptions
4. ClassFinder - Searches for classes of a certain type.

### 1. WordType convertor

[](#1-wordtype-convertor)

Converts a set of strings of typographical conventions between them. It handles `camelCase`, `PascalCase` and `snake_case`. **Usage**

```
