Download the PHP
package creode/wordpress-blocks without Composer
On this page you can find all versions of the php package
creode/wordpress-blocks. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor creode Package wordpress-blocks Short Description Block library and block development framework for WordPress blocks. License
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 wordpress-blocks
WordPress Blocks
This is a WordPress plugin which contains a few blocks to assist in starting out a new project. The blocks are built using the WordPress ACF and the block editor. This module also contains infrastructure to assist in the creation of template based blocks.
Installation
Installation of this can be done using composer: composer require creode/wordpress-blocks
Usage
This plugin once installed will be added to the mu-plugin folder so it is ready for it to be used in your project.
Creating new blocks
In order to create new blocks, you can add a new class to your theme or plugin and extend the Creode_Blocks\Block class.
If you are utilising WP_CLI for your project, you can use the following command to create a new block class:
This will create a newly configured block class and template file within your theme, inside the blocks directory. The theme argument is optional and will default to the current theme.
It will also output a couple of lines that can be copy and pasted into your functions.php file to include the block class and get started quickly.
Creating child blocks
Child blocks are defined within your block class inside the child_blocks() function. You can just need to return an array of new Creode_Blocks\Child_Block instances from it.
Generating documentation locally
This package uses PHPDoc to generate documentation for the blocks. To generate the documentation for testing purposes, you can run the following docker command:
This will create a new build/docs folder so you can view the documentation locally.
Roadmap
[ ] Ongoing: Continue to expand the base offering of block classes
[x] Implement a command to create new blocks in your theme using WP_CLI
All versions of wordpress-blocks with dependencies
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 creode/wordpress-blocks contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.