Download the PHP package nicklambourne/slackblocks without Composer

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

slackblocks

Docs: read

PyPI version npm version Go module version Maven Central version NuGet version RubyGems version crates.io version Packagist version Hex version

Python CI TypeScript CI Go CI Java CI C# CI Ruby CI Rust CI PHP CI Elixir CI

Build Slack messages in Python, TypeScript, Go, Java, C#, Ruby, Rust, PHP, or Elixir — without writing JSON by hand.

Anyone who has built a non-trivial Slack message knows the drill: a wall of nested Block Kit JSON, five levels deep, where a typo'd field name or an over-long string sails silently through your code and only blows up when Slack rejects the API call. slackblocks replaces that JSON with typed objects that assemble it for you — and that complain at construction time, in your editor and your tests, rather than in production.

Why slackblocks?

Installation

Python (3.10+) Earlier Pythons should pin the `1.x` line, see [Compatibility](https://nicklambourne.github.io/slackblocks/usage/compatibility).
TypeScript / JavaScript (Node 20.19+ or 22.12+, ESM)
Go (1.22+)
Java (17+)
C# (.NET 8+)
Ruby (3.3+)
Rust (1.85+, edition 2024)
PHP (8.2+, 64-bit) PHP support begins with coordinated version 2.7.0. See the [PHP package guide](php/README.md) for native usage and development setup.
Elixir (1.16.3+, compatible OTP 26.2+, 64-bit) Add the [Hex package](https://hex.pm/packages/slackblocks) to your dependencies in `mix.exs`: Run `mix deps.get`. If Jason was compiled before Decimal was installed, run `mix deps.compile jason --force` in each build environment and rebuild the application/release. See the [Elixir package guide](elixir/README.md).

Quickstart

Python A CI notification: Send it in one line with the official Slack SDK — the `**` operator unpacks `Message` objects directly into the call, no `to_dict()` boilerplate:
TypeScript / JavaScript
Go
Java
C#
Ruby
Rust The same validated construction in Rust uses consuming builders and native errors: Values own their data, getters borrow, and `clone().into_builder()` supports editing without mutating the original. See the [Rust package guide](rust/README.md) and [Rust API reference](https://nicklambourne.github.io/slackblocks/reference/rust).
PHP The same construction in PHP uses readonly classes and named arguments: See the [PHP package guide](php/README.md), [sending integrations](php/integrations/README.md), and [PHP API reference](https://nicklambourne.github.io/slackblocks/reference/php).
Elixir Native structs use keyword constructors and atom enums. Tagged functions return `{:ok, value}` or `{:error, error}`; bang functions raise. Send the resulting map with Req or the community client. See the [Elixir package guide](elixir/README.md), [sending integrations](elixir/integrations/README.md), [API reference](https://nicklambourne.github.io/slackblocks/reference/elixir) and [Erlang example](elixir/erlang/src/slackblocks_erlang.erl).

The build notification rendered in Slack

Documentation

Repository layout

Download statistics

The Downloads badge sums all-time counts from PyPI (via Pepy), npm, NuGet, RubyGems, crates.io, Packagist, and Hex. Go and Maven Central have no comparable public all-time download counters and are excluded. Registry counting rules differ; these counts include automated downloads and do not represent unique users. The total refreshes hourly and shows unavailable if any contributing count is missing or more than 24 hours old.

Licensing

slackblocks is dual-licensed under MIT and BSD-3-Clause. Use whichever fits your project — this makes it safe to vendor into projects under either license.

Contributing

Contributions are welcome. Python development uses uv from python/; TypeScript and the docs site use pnpm from the repository root:

Elixir contributors use the pinned formatter toolchain and mix run tools/check.exs from elixir/; see native checks for packaging, Erlang, sending and quality prerequisites.

For the full development guide — testing conventions, the conformance-fixture workflow, docstring style, and the release process — see the Contributing page.

Adding a newly released Slack component or field? Follow the in-repo Adding New Block Kit Features for the shared contract, implementation, test, and documentation checklist.

Adding a new language? Follow the in-repo language implementation guide for native API design, parity, testing, documentation, packaging and release integration.

Bug reports and feature requests: https://github.com/nicklambourne/slackblocks/issues.


All versions of slackblocks with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
php-64bit Version >=8.2
ext-json Version *
ext-pcre Version *
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 nicklambourne/slackblocks contains the following files

Loading the files please wait ...