1. Go to this page and download the library: Download sandermuller/boost-core 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/ */
sandermuller / boost-core example snippets
#!/usr/bin/env php
declare(strict_types=1);
ncUserScopeOnce(
packageRoot: dirname(__DIR__),
packageName: 'your-vendor/your-tool',
);
// ... the tool's own dispatch ...
use SanderMuller\BoostCore\Config\BoostConfig;
use SanderMuller\ProjectBoostLaravel\Rendering\BladeRenderer;
return BoostConfig::configure()
->withAgents([Agent::CLAUDE_CODE])
->withSkillRenderers([new BladeRenderer]);
namespace SanderMuller\ProjectBoostLaravel;
use SanderMuller\BoostCore\Contracts\BoostWrapperContract;
final class BoostWrapper implements BoostWrapperContract
{
/** @param list<string> $activeAgents agent enum values in withAgents(...) */
public static function injectedEmitPaths(string $projectRoot, array $activeAgents): array
{
return ['.agents/skills/some-injected-skill/SKILL.md', /* ... */];
}
}
use SanderMuller\BoostCore\Skills\Remote\RemoteSkillSource;
return BoostConfig::configure()
->withAgents([Agent::CLAUDE_CODE])
->withRemoteSkills([
// Bundle mode — fetches the named `.skill` release asset and unzips it.
RemoteSkillSource::githubBundle('peterfox/agent-skills', 'v1.2.0', [
'composer-upgrade',
'phpstan-developer',
]),
// Path mode — fetches the repo tarball at the given ref and extracts
// the named subdirs. `.` covers a whole-repo-is-one-skill layout.
RemoteSkillSource::githubPath('mattpocock/skills', 'main', [
'grill-with-docs' => 'skills/engineering/grill-with-docs',
]),
]);
use SanderMuller\BoostCore\Enums\Tag;
return BoostConfig::configure()
->withAgents([Agent::CLAUDE_CODE])
->withTags(Tag::Php, Tag::Jira) // Tag enum cases or raw strings
->withExcludedSkills(['acme/pack:unwanted-skill'])
->withExcludedGuidelines(['acme/pack:unwanted-guideline']);