Skip to content

PlatformFilesPublisher ​

php
final readonly class Zairakai\LaravelDevTools\Services\PlatformFilesPublisher

Publishes the files of the platform from the stubs of the package into the project: the GitLab CI pipeline and the governance files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md).

Reached through ConfigStubPublisher, which keeps the groups and the keys.

Source: src/Services/PlatformFilesPublisher.php

Methods ​

__construct() ​

php
public function __construct(PublishOutput $output, StubWriter $writer)

publishGitlabCi() ​

php
public function publishGitlabCi(string $vendorPath, string $basePath, bool $force): bool

Publish the GitLab CI pipeline stub (.gitlab-ci.yml) into the project root.

publishGitlabCiFullstack() ​

php
public function publishGitlabCiFullstack(string $vendorPath, string $basePath, bool $force): bool

Publish the full-stack GitLab CI pipeline stub (.gitlab-ci.yml) into the project root.

publishGovernanceFiles() ​

php
public function publishGovernanceFiles(string $vendorPath, string $basePath, bool $force): bool

Publish governance files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md) to project root.

wantsFullstack() ​

php
public function wantsFullstack(string $basePath, bool $asked = false): bool

The CI file with PHP and JS: asked for, or the project uses js-dev-tools.

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.