Skip to content

Namespaced the code and brought into full PSR-4 compliance #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions ChromePhp.php → ChromePHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
* limitations under the License.
*/

namespace ChromePHP;

use ReflectionClass;
use ReflectionProperty;

/**
* Server Side Chrome PHP debugger class
*
* @package ChromePhp
* @author Craig Campbell <[email protected]>
*/
class ChromePhp
class ChromePHP
{
/**
* @var string
Expand Down Expand Up @@ -115,7 +120,7 @@ class ChromePhp
);

/**
* @var ChromePhp
* @var ChromePHP
*/
protected static $_instance;

Expand All @@ -138,7 +143,7 @@ private function __construct()
/**
* gets instance of this class
*
* @return ChromePhp
* @return ChromePHP
*/
public static function getInstance()
{
Expand Down Expand Up @@ -244,7 +249,7 @@ public static function table()
* internal logging call
*
* @param string $type
* @return ChromePhp
* @return ChromePHP
*/
protected static function _log($type, array $args)
{
Expand Down Expand Up @@ -330,7 +335,7 @@ protected function _convert($object)
/**
* takes a reflection property and returns a nicely formatted key of the property name
*
* @param ReflectionProperty
* @param ReflectionProperty $property
* @return string
*/
protected function _getPropertyKey(ReflectionProperty $property)
Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ccampbell/chromephp",
"name": "phpexpertsinc/chromephp",
"type": "library",
"description": "Log variables to the Chrome console (via Chrome Logger Google Chrome extension).",
"keywords": ["log","logging"],
Expand All @@ -11,14 +11,19 @@
"email": "[email protected]",
"homepage": "http://craig.is",
"role": "Developer"
},
{
"name": "Theodore R. Smith",
"email": "[email protected]",
"homepage": "https://www.linkedin.com/in/tedrsmith"
}
],
"require": {
"php": ">=7.0"
},
"autoload": {
"psr-0": {
"ChromePhp": ""
"psr-4": {
"ChromePHP\\": ""
}
}
}