diff --git a/ChromePhp.php b/ChromePHP.php similarity index 98% rename from ChromePhp.php rename to ChromePHP.php index 999f038..bcab5d7 100755 --- a/ChromePhp.php +++ b/ChromePHP.php @@ -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 */ -class ChromePhp +class ChromePHP { /** * @var string @@ -115,7 +120,7 @@ class ChromePhp ); /** - * @var ChromePhp + * @var ChromePHP */ protected static $_instance; @@ -138,7 +143,7 @@ private function __construct() /** * gets instance of this class * - * @return ChromePhp + * @return ChromePHP */ public static function getInstance() { @@ -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) { @@ -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) diff --git a/composer.json b/composer.json index c6b3b37..6d9fd20 100644 --- a/composer.json +++ b/composer.json @@ -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"], @@ -11,14 +11,19 @@ "email": "iamcraigcampbell@gmail.com", "homepage": "http://craig.is", "role": "Developer" + }, + { + "name": "Theodore R. Smith", + "email": "theodore@phpexperts.pro", + "homepage": "https://www.linkedin.com/in/tedrsmith" } ], "require": { "php": ">=7.0" }, "autoload": { - "psr-0": { - "ChromePhp": "" + "psr-4": { + "ChromePHP\\": "" } } }