PHP code example of shineunited / conductor-gitignore-addon
1. Go to this page and download the library: Download shineunited/conductor-gitignore-addon 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/ */
shineunited / conductor-gitignore-addon example snippets
namespace Example\Project;
use Composer\Composer;
use Composer\IO\IOInterface;
use ShineUnited\Conductor\Addon\Gitignore\Capability\GitignoreProvider;
class ComposerPlugin implements PluginInterface, Capable {
public function activate(Composer $composer, IOInterface $io): void {
// ...
}
public function deactivate(Composer $composer, IOInterface $io): void {
// ...
}
public function uninstall(Composer $composer, IOInterface $io): void {
// ...
}
public function getCapabilities(): array {
return [
GitignoreProvider::class => ExampleGitignoreProvider::class
];
}
}
namespace Example\Project;
use ShineUnited\Conductor\Addon\Gitignore\Capability\GitignoreProvider;
use ShineUnited\Conductor\Addon\Gitignore\Pattern\Rule;
class ExampleGitignoreProvider implements GitignoreProvider {
public function getGitignores(): array {
return [
new Rule('path/to/ignore'),
new Rule('another/path/to/ignore')
];
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.