Download the PHP package laravel/chisel without Composer

On this page you can find all versions of the php package laravel/chisel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chisel

Build Status Total Downloads Latest Stable Version License

Introduction

Laravel Chisel provides primitives for building post-install scripts that remove unwanted features from Laravel starter kits. Compatible starter kits include a chisel.php script that defines the optional features and the file mutations needed to remove them.

Installation

Usage

An example chisel.php script for optional email verification might look like this:

Although the questions are defined in the chisel.php file, an external process such as an Artisan command is responsible for rendering them and passing the answers to Chisel's chisel() method. An example Artisan command using Laravel Prompts might look like this:

Script Definitions

Method Purpose
Chisel::script($directory) Create a script definition
Question::multiselect(...) Define a multiselect question
questions([...]) Set the script's questions
questions() Retrieve the registered questions
collectAnswers() Begin collecting answers for registered questions
apply($callback) Register an unconditional mutation step
selected($key, $value, then:, else:) Branch on a multiselect answer
selectedAny($key, $values, then:, else:) Branch when any of the given values are selected
selectedAll($key, $values, then:, else:) Branch when all of the given values are selected
chisel($answers) Execute the registered mutations

Answer Collection

collectAnswers() returns a pending answer collector. All methods are fluent and can be called in any order. Answers are resolved when the object is used as an array or toArray() is called. When non-interactive, defaults are used automatically.

Method Purpose
onQuestion($callback) Handle question prompts
interactive($interactive) Configure whether missing answers are prompted interactively
withAnswers($answers) Provide pre-collected answers to skip prompting

File Mutations

file($path) targets a single file. files(...$paths) targets multiple files.

Method Purpose
replace($search, $replace) Replace a string
removeLinesContaining($content) Remove lines containing a string
removeSectionMarkers($tag) Strip section markers, keep the content
removeSection($tag) Remove section markers and the content inside them
delete() Delete the targeted files

PHP File Mutations

php($path) provides AST-based edits. Changes are saved automatically when the object is destroyed.

Method Purpose
removeImport($class) Remove a use statement
removeTrait($trait) Remove a trait usage from the class
removeInterface($interface) Remove an implemented interface

npm

Method Purpose
npm()->install() Install dependencies using the detected package manager
npm()->run($script, ...$arguments) Run a package manager script
npm()->remove(...$packages) Remove packages using the detected package manager

The npm() method detects npm, yarn, pnpm, and bun automatically.

Section Markers

Wrap optional code in comment pairs:

JSX files may use block comments with braces:

removeSectionMarkers('passkeys') keeps the code and removes the markers. removeSection('passkeys') removes both. The chisel- marker prefix is added automatically.

Contributing

Thank you for considering contributing to Chisel! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Laravel Chisel is open-sourced software licensed under the MIT license.


All versions of chisel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/process Version ^10.20|^11.0|^12.0|^13.0
nikic/php-parser Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laravel/chisel contains the following files

Loading the files please wait ...