1. Go to this page and download the library: Download biblibre/omeka-cli library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use OmekaCli\Command\AbstractCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Foo_Bar extends AbstractCommand
{
protected function configure()
{
$this->setName('foo:bar');
$this->setDescription('print something to stdout');
$this->setAliases(array('bar'));
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('Hello, omeka-cli!');
return 0;
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.