Getting Started =============== Tabular is meant to be used as a dependency to your project. If you just want to experiment with the what the library can do then check out the `Tabular CLI `_, have a look at the examples there and read the :doc:`definition ` chapter. Otherwise you can continue to install Tabular as a dependency in your project. Installation ------------ Install it with composer: .. code-block:: bash $ composer require phpbench/tabular Quick Instantiation ------------------- A default instance of Tabular can be obtained using the static `getInstance` method: .. code-block:: php register('printf', new PrintfFormat()); // ... $formatter = new Formatter($functionRegistry); $xpathResolver = new XPathResolver(); $xpathResolver->registerFunction('foo', 'foo_function'); // ... $tableBuilder = new TableBuilder($xpathResolver); $loader = new Loader(); $expander = new Expander(); $tabular = new Tabular($tableBuilder, $loader, $formatter, $expander);