diff --git a/README.md b/README.md index ab6c24e..41c3240 100644 --- a/README.md +++ b/README.md @@ -43,19 +43,19 @@ Edit `config.example.php` and save as `config.php` or use an other name of your ### List all commands ```console -./fbconvertconv list +./fbcontactconv list ``` ### Complete processing ```console -./fbconvertconv run +./fbcontactconv run ``` ### Get help for a command ```console -./fbconvertconv run -h +./fbcontactconv run -h ``` ### Export phonebooks diff --git a/composer.json b/composer.json index 513b40f..5af50c8 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "^7.0", - "symfony/console": "^3.0", - "blacksenator/fritzsoap": "^2.1", - "blacksenator/fritzdbf": "^1.4" + "php": ">=7.0", + "symfony/console": ">=3.0", + "blacksenator/fritzsoap": ">=2.1", + "blacksenator/fritzdbf": ">=1.4" }, "autoload": { "psr-4": { @@ -23,6 +23,6 @@ "files": ["src/functions.php"] }, "require-dev": { - "phpunit/phpunit": "^6" + "phpunit/phpunit": ">=6" } } diff --git a/config.example.php b/config.example.php index 63f6b01..585ba81 100644 --- a/config.example.php +++ b/config.example.php @@ -20,6 +20,16 @@ 'path' => '', 'file' => 'LocalPhonebook.xml', ], + 'Yealink2' => [ + 'xsl' => 'Yealink_2.xsl', + 'path' => '', + 'file' => 'LocalPhonebook2.xml', + ], + 'Yealink3' => [ + 'xsl' => 'Yealink_3.xsl', + 'path' => '', + 'file' => 'LocalPhonebook3.xml', + ] 'snom' => [ 'xsl' => 'snom.xsl', 'path' => '', diff --git a/lib/Yealink_3.xsl b/lib/Yealink_3.xsl new file mode 100644 index 0000000..5729215 --- /dev/null +++ b/lib/Yealink_3.xsl @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + 0 + Auto + Resource:icon_family_b.png + 0 + All Contacts + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/RunCommand.php b/src/RunCommand.php index 1d2c6c9..ba075e9 100644 --- a/src/RunCommand.php +++ b/src/RunCommand.php @@ -20,10 +20,11 @@ protected function configure() $this->addConfig(); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $this->loadConfig($input); error_log('Converting FRITZ!Box contacts...'); convertFBphonebook($this->config); + return 0; } }