Skip to content

Commit

Permalink
Add docs/getting-started.md and refocus the project description on th…
Browse files Browse the repository at this point in the history
…e WebUI instead of Console
  • Loading branch information
vitorbrandao committed Jun 6, 2016
1 parent b6c39d3 commit 7a38455
Show file tree
Hide file tree
Showing 40 changed files with 123 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .php_cs
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -6,7 +6,10 @@ Noiselabs ZfDebugModule
[![Code Coverage](https://scrutinizer-ci.com/g/noiselabs/zf-debug-utils/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/noiselabs/zf-debug-utils/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/noiselabs/zf-debug-utils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/noiselabs/zf-debug-utils/?branch=master)

Console commands and other utilities for debugging ZF2 apps.
WebUI and Console commands for debugging ZF2 apps.

DISCLAIMER: ZfDebugModule is still at an early development stage.
No Console commands were added so far.

Installation
------------
Expand All @@ -31,7 +34,9 @@ Then enable this module by adding it and `AssetManager` (a dependency) to `appli
Documentation
-------------

Documentation is available on Read the Docs: <https://zf-debug-utils.readthedocs.org/>

* [Getting Started](getting-started.md)

License
-------
Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,6 +1,6 @@
{
"name": "noiselabs/zf-debug-utils",
"description": "Console commands and other utilities for debugging ZF2 apps",
"description": "WebUI and Console commands for debugging ZF2 apps",
"type": "library",
"license": "MIT",
"authors": [
Expand Down
16 changes: 14 additions & 2 deletions docs/conf.py
Expand Up @@ -7,7 +7,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
import recommonmark

from recommonmark.transform import AutoStructify
from recommonmark.parser import CommonMarkParser

Expand All @@ -21,6 +21,7 @@

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.todo',
]

templates_path = ['_templates']
Expand All @@ -30,19 +31,30 @@

# General information about the project.
project = u'Noiselabs ZfDebugModule'
copyright = u'2016, Vítor Brandão and contributors'
copyright = u'2016, Vítor Brandão'
author = u'Vítor Brandão and contributors'
version = '0.2'
release = '0.2.0-DEV'

exclude_patterns = ['_build']
pygments_style = 'sphinx'
todo_include_todos = True
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_domain_indices = True
html_use_index = True
html_show_sphinx = True
html_show_copyright = True
html_file_suffix = None
html_search_language = 'en'
htmlhelp_basename = 'zf-debug-utils'

github_doc_root = 'https://github.com/noiselabs/zf-debug-utils/tree/master/docs'

def setup(app):
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents',
'enable_auto_doc_ref': True,
}, True)
app.add_transform(AutoStructify)
65 changes: 65 additions & 0 deletions docs/getting-started.md
@@ -0,0 +1,65 @@
Getting Started
===============

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

Install the package via Composer:

```bash
composer require noiselabs/zf-debug-utils
```


Then enable this module by adding it and `AssetManager` (a dependency) to `application.config.php`.

```php
<?php
'modules' => [
'AssetManager',
'Noiselabs\ZfDebugModule',
],
```

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

Nothing so far. It just works. Soon we will add the possibility of defining a custom root URL for ZfDebugModule URLs.

What's inside?
--------------

ZfDebugModule provides a _WebUI and Console commands for debugging ZF2 apps_. However, as stated in the DISCLAIMER:
_"ZfDebugModule is still at an early development stage. No Console commands were added so far"_. So for now we are
going to focus on WebUI features only.

### WebUI

Web URLs are by default mounted at `/_debug`. After installing this module simply navigate to `/_debug` and you should
see the home screen. If you are using the ZendSkeletonApplication the home URL should look similar to this:
`http://127.0.0.1:8080/_debug`.

### Routing

Routing is the first debug component made available. You have the possibility to list all routes or match a URL to a
route.

![Home - Routing](_static/images/index-routing.png "Home - Routing")

#### List all Routes

Navigate to `/_debug/routes/list` or in the Home screen click in `List all Routes`. These are all the routes available
in current application. Each column is sortable and you can filter results by using the search input.

![List all routes](_static/images/routing-list-all-routes.png "List all routes")

#### Match a Route

Navigate to `/_debug/routes/match` or in the Home screen click in `Match a Route`. Provide an HTTP method such as "GET"
or "POST" plus a base URL (omit the scheme) and hit `Find Route`. If the URL matches a route in your application you
should see something similar to the following picture. You can see details such as the route URL, controller and action.

![Match a Route](_static/images/routing-match-route.png "Match a Route")



2 changes: 1 addition & 1 deletion src/Controller/Console/RoutesController.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Http/IndexController.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Http/RoutesController.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Controller/Console/RoutesControllerFactory.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Controller/Http/IndexControllerFactory.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Controller/Http/RoutesControllerFactory.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Util/Routing/RouteCollectionFactory.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Util/Routing/RouteMatcherFactory.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
4 changes: 2 additions & 2 deletions src/Package.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand All @@ -16,6 +16,6 @@ class Package
const VENDOR = 'noiselabs';
const NAME = 'zf-debug-utils';
const FQPN = 'noiselabs/zf-debug-utils'; // Fully Qualified Package Name
const DESCRIPTION = 'Console commands and other utilities for debugging ZF2 apps';
const DESCRIPTION = 'WebUI and Console commands for debugging ZF2 apps';
const VERSION = '0.2.0-DEV';
}
2 changes: 1 addition & 1 deletion src/Resources/config/module.config.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/main.js
@@ -1,5 +1,5 @@
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Routing/FlatRouteCollection.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Routing/Route.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Routing/RouteCollection.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Routing/RouteCollectionBuilder.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Routing/RouteMatcher.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Functional/Bootstrap.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Functional/Controller/Http/IndexControllerTest.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Functional/Controller/Http/RoutesControllerTest.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Functional/config/application.config.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Factory/Util/Routing/RouteMatcherFactoryTest.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/ModuleTest.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/PackageTest.php
@@ -1,6 +1,6 @@
<?php
/**
* ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
Expand Down

0 comments on commit 7a38455

Please sign in to comment.