PHPackages                             forikal-uk/xmlauthor-example-command - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. forikal-uk/xmlauthor-example-command

Abandoned → [https://github.com/xmlsquad/xmlauthor-example-command](/?search=https%3A%2F%2Fgithub.com%2Fxmlsquad%2Fxmlauthor-example-command)Library[File &amp; Storage](/categories/file-storage)

forikal-uk/xmlauthor-example-command
====================================

Example command for managing xml files.

v0.3.3(7y ago)113[1 issues](https://github.com/forikal-uk/xmlauthor-example-command/issues)Apache-2.0PHPPHP &gt;=7.1CI failing

Since Jun 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/forikal-uk/xmlauthor-example-command)[ Packagist](https://packagist.org/packages/forikal-uk/xmlauthor-example-command)[ RSS](/packages/forikal-uk-xmlauthor-example-command/feed)WikiDiscussions master Synced 1mo ago

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

xmlauthor-example-command
=========================

[](#xmlauthor-example-command)

A git project that acts as an example of an xmlauthor command.

Prerequisites
-------------

[](#prerequisites)

- Git
- PHP `5.5.9+`
- [Composer installed](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) globally

Install
-------

[](#install)

- Install dependencies

    ```
    composer install
    ```
- Try `hello-world` command:

    ```
    bin/hello-world --configFilename=XmlAuthoringProjectSettings.yaml.dist
    ```

### Building own command

[](#building-own-command)

- New commands should:

    - be written to run in a Symfony 3.4 console application. See [Symfony's documentation on creating commands](https://symfony.com/doc/3.4/console.html).have their own git repository project
    - have tests (one or more of PHPUnit/Behat/etc) stored within the project repository
    - be compatible with Symfony 3.4, and
    - make good use of the `symfony/console` project. i.e. `$ composer require symfony/console:~3.4`
    - adhere to the [convention that allows the command to be automatically registered](https://symfony.com/doc/3.4/console.html#registering-the-command).
    - be installed by end users as a composer package
    - reuse existing libraries where possible. Such as;
        - [PHP's Standard PHP Library](http://php.net/manual/en/book.spl.php)
    - use [PSR-4 autoloading](https://www.php-fig.org/psr/psr-4/) where possible.
    - be cross-platform compatible; Run on the command line on Windows 10, MacOS High Sierra and Linux.
    - provide README.md instructions on how to install and use the command from .
- Example command:

    ```
    # src/Command/NewCommand.php
    namespace XmlSquad\PackageName\Command;

    use XmlSquad\Library\Command\AbstractCommand;

    class NewCommand extends AbstractCommand
    {
        public function __construct()
        {
            # Specify command's name
            parent::__construct('new-command');
        }

        /**
         * {@inheritdoc}
         */
        protected function execute(InputInterface $input, OutputInterface $output)
        {
            try {
                $configFilename = $input->getOption('configFilename');
                $configOptions = $this->getConfigOptions($configFilename);

                dump($configOptions);
            } catch (FileNotFoundException $e) {
                $output->writeln(
                    $e->getMessage(), OutputInterface::VERBOSITY_NORMAL
                );
            }
        }
    }
    ```

Test
----

[](#test)

```
vendor/bin/phpunit
```

TODO
====

[](#todo)

\[ \] Tests with virtual filesystem

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Total

4

Last Release

2763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3f30d378f09a6e60c2bc0344743b0a0ac47a039940ca322042d94f11016c306?d=identicon)[forikal-uk](/maintainers/forikal-uk)

---

Top Contributors

[![john-arcus](https://avatars.githubusercontent.com/u/32770045?v=4)](https://github.com/john-arcus "john-arcus (13 commits)")[![forikal-uk](https://avatars.githubusercontent.com/u/39656410?v=4)](https://github.com/forikal-uk "forikal-uk (3 commits)")[![igormukhingmailcom](https://avatars.githubusercontent.com/u/6544038?v=4)](https://github.com/igormukhingmailcom "igormukhingmailcom (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/forikal-uk-xmlauthor-example-command/health.svg)

```
[![Health](https://phpackages.com/badges/forikal-uk-xmlauthor-example-command/health.svg)](https://phpackages.com/packages/forikal-uk-xmlauthor-example-command)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M190](/packages/simplesamlphp-simplesamlphp)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M151](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
