slack-php/slack-block-kit
OOP interface for writing Slack Block Kit messages and modals
2.3.1
913K downloads/mo
#4271 most downloaded on Packagist
slack-php/slack-php-block-kit
What this package is like to depend on
Last release 1 years ago
07 Apr 2025
Ships unpredictably
gaps range from 1 weeks to 1.8 years
Rarely documented
notes for 8 of 33 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
35 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
35 releases · Nov 2019 to Apr 2025Releases
latest 35-
2.3.107 Apr 2025Release notes
Open source →What's Changed
- fix: exclude
.devcontainerdirectory from composer distribution package by @maartenpaauw in #68 - make properties explicitly nullable by @krb19xx in #78
New Contributors
Full Changelog: 2.3.0...2.3.1
- fix: exclude
-
2.3.028 Dec 2024Release notes
Open source →What's Changed
- feat: add
.gitattributesto exclude unnecessary files from Composer dist package by @maartenpaauw in #67 - Add rich text block, elements and parts by @maartenpaauw in #66
Full Changelog: 2.2.0...2.3.0
- feat: add
-
2.2.017 Dec 2024Release notes
Open source →What's Changed
- Bump friendsofphp/php-cs-fixer from 3.14.4 to 3.65.0 by @dependabot in #62
- Bump actions/checkout from 3 to 4 by @dependabot in #49
- Bump ramsey/composer-install from 2 to 3 by @dependabot in #55
- Add dev container configuration by @maartenpaauw in #63
- Add video block by @maartenpaauw in #61
New Contributors
- @maartenpaauw made their first contribution in #63
Full Changelog: 2.1.2...2.2.0
-
2.1.205 Dec 2024Release notes
Open source →What's Changed
- Fix code block creation without block ID by @AdryanSignor in #41
New Contributors
- @AdryanSignor made their first contribution in #41
Full Changelog: 2.1.1...2.1.2
-
2.1.103 Dec 2024Release notes
Open source →What's Changed
- Fix wrong property name for MultiUserSelectMenu initial value by @attepulkkinen in #59
New Contributors
- @attepulkkinen made their first contribution in #59
Full Changelog: 2.1.0...2.1.1
-
2.1.019 Dec 2023Release notes
Open source →- Adds
NumberInputelement. - Fixes a handful of reported issues.
Thank you contributors.
- Adds
-
2.0.019 Feb 2022Release notes
Open source →Welcome to Version 2!
V2 is written for PHP 8.1+, and uses all the latest and greatest PHP features (enums, named parameters, attributes, etc.).
The library itself has gone through quite a few changes:
- Many classes/namespaces have been renamed (Elements -> Components, Inputs -> Elements, Partials -> Parts, etc.). Most of these changes are to align better with Slack documentation.
- Named parameters have become the primary interface now, but the fluent interface is still there too (and more reliable than before, IMO).
- Lots of fixes across the different components (found a lot of little bugs here and there), and improvements to validations.
- Validation is no longer implicit. You have to call
->validate()explicitly now. This means you can choose to validate or not. - The
Kitclass is now a facade for all the components, not just surfaces. - The
Formatterclass is now namedMd. - Existing component objects are easier to read/update. This makes them more useful in the context of APIs and app code where block kit JSON is received and needs to be altered (very common for modals and app homes).
The README is updated with new examples and diagrams that will help you get a feel for everything.
Release notes
Open source →- Rename
ActionsCollectiontoActionCollectionfor consistency - Separate unique ID validation from
ValidCollectionintoUniqueIdsvalidation attribute - Add support for new
accessibility_labelfield onElements\Button
Release notes
Open source →Welcome to Version 2!
V2 is written for PHP 8.1+, and uses all the latest and greatest PHP features (enums, named parameters, attributes, etc.).
The library itself has gone through quite a few changes:
- Many classes/namespaces have been renamed (Elements -> Components, Inputs -> Elements, Partials -> Parts, etc.). Most of these changes are to align better with Slack documentation.
- Named parameters have become the primary interface now, but the fluent interface is still there too (and more reliable than before, IMO).
- Lots of fixes across the different components (found a lot of little bugs here and there), and improvements to validations.
- Validation is no longer implicit. You have to call
->validate()explicitly now. This means you can choose to validate or not. - The
Kitclass is now a facade for all the components, not just surfaces. - Existing component objects are easier to read/update. This makes them more useful in the context of APIs and app code where block kit JSON is received and needs to be altered (very common for modals and app homes).
The README is updated with new examples and diagrams that will help you get a feel for everything.
-
2.0.0-alpha.208 Feb 2022 pre-releaseNothing published for this version
-
2.0.0-alpha.106 Feb 2022 pre-releaseNothing published for this version
-
1.0.002 Feb 2022Release notes
Open source →It's about time I cut a v1 release, so here it is! It's not perfect, but it's complete.
This release includes recent contributions for internationalization, unique ID checks, and test updates as well (Thank you!).
Going forward, any patches for v1 should use the
v1branch.The
mainbranch (formerly master) has diverged now to v2 work. -
0.19.018 Jun 2021Nothing published for this version
-
0.18.030 Apr 2021Nothing published for this version
-
0.17.015 Apr 2021Nothing published for this version
-
0.16.002 Mar 2021Nothing published for this version
-
0.15.015 Jan 2021Nothing published for this version
-
0.14.005 Jan 2021Nothing published for this version
-
0.13.112 Dec 2020Nothing published for this version
-
0.13.003 Dec 2020Nothing published for this version
-
0.12.022 Nov 2020Nothing published for this version
-
0.11.019 Nov 2020Nothing published for this version
-
0.10.119 Nov 2020Nothing published for this version
-
0.10.009 Nov 2020Nothing published for this version
-
0.9.030 Sep 2020Nothing published for this version
-
0.8.309 Jun 2020Nothing published for this version
-
0.8.214 Apr 2020Nothing published for this version
-
0.8.114 Apr 2020Nothing published for this version
-
0.8.008 Feb 2020Nothing published for this version
-
0.7.017 Jan 2020Nothing published for this version
-
0.6.014 Jan 2020Nothing published for this version
-
0.5.105 Dec 2019Nothing published for this version
-
0.5.002 Dec 2019Nothing published for this version
-
0.4.021 Nov 2019Nothing published for this version
-
0.3.021 Nov 2019Nothing published for this version
-
0.2.021 Nov 2019Nothing published for this version
-
0.1.016 Nov 2019Nothing published for this version