Skip to content

BaseFilesPublisher ​

php
final readonly class Zairakai\LaravelDevTools\Services\BaseFilesPublisher

The files that every project has from the setup, besides config/dev-tools/: the Makefile, .editorconfig, the Composer scripts of the package and the block of .gitignore.

Source: src/Services/BaseFilesPublisher.php

Methods ​

__construct() ​

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

composerScripts() ​

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

The Composer scripts of the package, added to composer.json. With $force, a script that the project has with another value is replaced, after a copy of composer.json.

editorConfig() ​

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

gitignore() ​

php
public function gitignore(string $basePath): bool

The block of .gitignore for the files of the tools. A project that has the block, with this title or with the one of the older versions, is left as it is. A project without .gitignore is left as it is too.

makefile() ​

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

The Makefile of the project: the one for PHP, or the one for PHP and JS when 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.