Download the PHP package tdwesten/statamic-builder without Composer

On this page you can find all versions of the php package tdwesten/statamic-builder. 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 statamic-builder

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Github

Statamic Builder

The Statamic Builder speeds up building Statamic sites. It offers a clear method to define sites, blueprints, fieldsets, collections, naviations and taxonomies using PHP classes. This approach enhances code readability and maintainability compared to writing YAML files.

For example, you can define a collection blueprint as follows:

Installation

You can install this addon with composer. Run the following command in your terminal to install the addon.

Blueprints and Fieldsets

This addon allows you to create blueprints and fieldsets in a fluent way. This makes it easier to define and maintain your blueprints and fieldsets.

How to create a blueprint

  1. Create a new blueprint by running the following command for a page blueprint for example:

  2. Define your blueprint in the generated file. For example:

  3. Register the blueprint in your config/statamic/builder.php file:

  4. That's it! You can now use your blueprint in your Statamic application.

How to create a fieldset

  1. Create a new fieldset by running the following command for a hero fieldset for example:

  2. Define your fieldset in the generated file. For example add a title and image field to the hero fieldset:

  3. Register the fieldset in your config/statamic/builder.php file:

  4. Now you can use your fieldset in your blueprints. For example:

Supported Fieldtypes

All default Statamic field types are supported. You can create custom field types by utilizing the Field class. For example to create a custom field type you can use the following code:

How to register Collections and Taxonomies

This addon enables you to define collections and taxonomies in PHP classes, simplifying the process of defining and managing them.

How to register a collection

  1. Generate a new collection blueprint, for example for an articles collection blueprint run the following command:

  2. Define your Articles collection blueprint in the generated file. For example, the file has all options available to define a collection blueprint. For example:

  3. Add the collection to the config/statamic/builder.php file:

How to register a taxonomy

  1. Generate a new taxonomy blueprint, for example for a categories taxonomy blueprint run the following command:

  2. Define your taxonomy in the generated file. For example, the file has all options available to define a taxonomy. For example:

  3. Add the taxonomy to the config/statamic/builder.php file:

    public function title(): string { return 'Site Settings'; }

    // Add more options here... } bash php artisan make:site Blog bash php artisan cache:clear


All versions of statamic-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
laravel/framework Version ^10.0|^11.0|^12.0
statamic/cms Version ^5.4
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 tdwesten/statamic-builder contains the following files

Loading the files please wait ....