Download the PHP package jasonbaciulis/bedrock-commands without Composer

On this page you can find all versions of the php package jasonbaciulis/bedrock-commands. 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 bedrock-commands

Bedrock Commands

A Statamic addon with CLI commands that create, rename and delete the page builder blocks and article sets of the Bedrock starter kit. Each command keeps the fieldset, the Antlers view, the parent YAML definition and the entry content in sync.

Requirements

Installation

The Bedrock starter kit installs this addon for you. To add it to an existing Bedrock project:

Blocks

Blocks are like LEGO bricks that give you maximum flexibility when you build pages. Blocks are sets of the Blocks field, which is based on the Replicator Fieldtype.

Make

Delete

Removes a set from the Blocks field, removes it from all entries and deletes its fieldset and view.

Rename

Renames a block, its fieldset and its view, updates all entries that use it and optionally moves it to another group.

Sets

Sets give you a flexible content editing experience for entries, e.g. blog posts. Sets live in the Article field, which is based on the Bard Fieldtype.

Make

Delete

Removes a set from the Article field, removes it from all entries and deletes its fieldset and view.

Rename

Renames a set, its fieldset and its view, updates all entries that use it and optionally moves it to another group.

Arguments and options

Each command asks for the values that you do not give. <group> must be an existing group handle from blocks.yaml or article.yaml.

Command Arguments Options
make:bedrock-block, make:bedrock-set <group> "<Display Name>" --instructions="..." sets the editor instructions. --force overwrites existing files.
delete:bedrock-block, delete:bedrock-set <group> <fieldset_handle> --keep-files removes the set from the parent fieldset but keeps its fieldset and view. --force skips the confirmation and ignores missing files.
rename:bedrock-block, rename:bedrock-set <group> <current_handle> "<New Display Name>" --force skips the confirmation and overwrites existing files.

Scripts and AI agents

A prompt hangs a non-interactive shell. Always give all arguments, and give --force to the delete and rename commands:

Tell your AI agents to always use these commands for blocks and sets, and never to create or remove the files by hand. Bedrock's .ai/guidelines/bedrock.md already does this for Laravel Boost.

Configuration

The commands write the views to resources/views/blocks and resources/views/sets. To change these paths, publish the config:

Then edit blocks_views_path and sets_views_path in config/bedrock-commands.php.

Stubs

The make commands create the fieldset and the view from stubs. To change the default markup or fields, publish the stubs:

Then edit the files in stubs/bedrock-commands. The commands use a published stub when it exists, and the bundled stub when it does not. {{ name }} is replaced with the display name.

Stub Creates
fieldset_block.yaml.stub The fieldset of a new block
block.antlers.html.stub The view of a new block
fieldset_set.yaml.stub The fieldset of a new set
set.antlers.html.stub The view of a new set

Development

composer test runs Pint, Rector, type coverage, PHPStan and the Pest suite with 100% code coverage. The tests use the fixtures in tests/__fixtures__, not the project's fieldsets and content.

License

Bedrock Commands is open-source software licensed under the MIT license.


All versions of bedrock-commands with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
statamic/cms Version ^6.34.1
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 jasonbaciulis/bedrock-commands contains the following files

Loading the files please wait ...