Introduction

Craft 3, Craft 3, and Craft 3. Plus news, tips, plugins and more.
Craft 3 is here! It's no surprise that means a newsletter full of Craft 3 goodies. Have a link suggestion for a future issue? Submit one here.
Thanks to Solspace for sponsoring this issue. Their power-tool plugins Freeform 2 and Calendar 2 are available for Craft 3.
Let's hit the links.
-John Morton
Top Stories
Craft 3 officially released.
A few things: Multi-Site. Image Editor. Asset Preview. Debug Toolbar. Element Queries. PostgreSQL. Plugin Store.
Commerce 2 Beta released
A few things: Subscriptions. Promotions for all purchasable types. Multi-add. Location, location, location.
Introducing The Craft Plugin Store
A few things: Centralized license verification. Easy publishing and releasing. Discoverability in the control panel. Instant payouts.
News
Craft 3.0.2 released
There have been a few Craft 3 releases since launch already. Fixes, changes, additions.
Craft CMS 2.6.3014 & 2.6.3015 released
What’s changed in Craft 2? The Personal edition has been renamed “Solo” (to match what's available in Craft 3) plus an assortment of fixes.
Survey results on "How Craft teams work".
Details on how your fellow devs work on Craft. For example, the average number of Craft sites a dev manages is 13 ½. Those ½ sites are the ones that cause the most trouble.
Craft CMS Installer Art on Behance
Check out the art from Paul Burton, the illustrator behind the beautiful graphics you see every time you install Craft.
Featured Sponsor

Freeform 2 Beta now available for Craft 3!
Freeform is the most powerful form building plugin on the market for Craft. The intuitive live preview field layout editor gives you full control to create simple or complex multi-column and multi-page forms. It also includes flexible email notification options, powerful and flexible templating, and has options for several API integrations.
Tools, tips, and fundamentals
How to build a content builder in Craft CMS
Alex Carpenter shows how to build a great authoring experience using Craft CMS's matrix field type.
Downloading Previous Craft Versions
You’ve got Craft 3. But what if you need an old version? Here you go.
Tilde and caret version constraints in Composer
Have you had a plugin report an available update but composer update
doesn't actually update it? You might need to check the constraints your composer.json
file.
Automatic migrations tip
Craft CMS 3 tip: tired of racing to the AdminCP to update the database after your super awesome atomic deployments run? Don't! Run migrations from your deploy script via the CLI with: ./craft migrate/all

PhpStorm auto-complete tip
PhpStorm can auto-complete your custom entry field handles, too! Just enable the Symfony plugin & then add this to the top of your templates:
{# @var entry \craft\elements\Entry #}
Related Entry in URL Format with Craft CMS Channel
Sean Smith on how to set the url format of a Craft Channel to use an Entries field.
Profiling your Website with Craft CMS 3's Debug Toolbar
Andrew Welch continues his quest. 🍺 This time he fills us in on the new Craft 3 Debug Toolbar.
Manipulating Craft's ElementCriteriaModel objects with Twig
Using Twig to manipulate Craft's ElementCriteriaModel objects makes for leaner and meaner templates. Relatively complex functionalities can also be built pretty easily.
The Front-End Checklist
The Front-End Checklist Application is perfect for modern websites and meticulous developers.
Stack Exchange / Craft 3 / Slack pro tip
Pro tip for using Stack Exchange: If you tag your Stack Exchange posts with craft3
, they’ll get pumped into #craft3-help channel in the Craft Slack group.
Perfecting your technique
What’s the right way to add a custom event in Craft 3?
Several weeks ago, creating custom events in Craft 3 plugins was discussed. P&T’s Mailer.php was referenced as an example. Here are the basics of what you’d do.
1. Create an Event events/YourEvent
2. Create an instance of that event in your code
$event = new YourEvent([
'entry' => $entry
]);
3. Trigger the event: $this->trigger(SomeClass::EVENT_CONSTANT, $event);
Craft Vue
All the power of a Vue's webpack template & single file components tailored for a Craft CMS project.
Craft Plugin Commands: Manage Craft plugins from the cli
Manage Craft plugins from the command line with this Yii Module.
Clearleft's Living Component Library
Now, a pattern library in itself is a lovely thing. However, we know that its true power lies in being directly integrated into the system for which it is intended. In our case the CMS, Craft. And we have done just that.
Sponsor

Calendar 2 Beta now available for Craft 3!
Calendar is the most powerful event management and calendaring plugin on the market for Craft. The intuitive interface allows you to create events with complex recurring event rules and exclusions, while the flexible templating offers a variety of options to satisfy your calendaring needs.
Plugged In
Craft Asset Rev, now for Craft 3
A Twig extension for CraftCMS that helps you cache-bust your assets using configurable strategies.
Smartdown for Craft
Bringing the unbridled joy of Markdown Extra and Smartypants to your Craft websites.
Many to Many Field Type plugin for Craft 3
A Field Type plugin for CraftCMS that allows the management of relationships from both sides.
Redactor Tweaks
A small Craft CMS that provides some tweaks to the default Redactor II Rich Text fieldtype.
Craft Twig Profiler
Twig Profiler allows you to profile sections of your Twig templates and see the resulting timings in the Yii2 Debug Toolbar.
Password Policy plugin for Craft CMS 3
Enforce a password policy on your Craft CMS users. Set a requirement of minimum length, force the use of at least 1 number, different cases and more.
SAML Service Provider (SP) Plugin for CraftCMS
Flipbox has released their SSO, aka "single-sign-on", plugin for Craft 3. It's now in public beta, as mentioned on their blog. You might also want to check out their page on how to configure it.
Craft Sequential Edit
This plugin lets you edit multiple elements (entries, assets, categories ...) in sequence, without being sent back to the index page each time you save your changes.
Need to create some plugin licenses?
This link is for Craft plugin developers only. If you need to generate a license key for a paid Craft 3 plugin, this is the API for doing that. What else can you do?
Yii, Twig, PHP & More
Typecasting using Twig-filters
If you want fields (variables) to be converted to a certain type value (for instance to calculate with a decimal number that came in as a string) you can "cast" the value using filters.
Overheard
Craft Link List on Product Hunt
Friend of the newsletter, Jalen Davenport, put Craft Link List on Product Hunt. (Thank you from me, myself and I.)
It’s not Craft, but it’s interesting.
Nuances of “Free”
With the release of Craft 3 there has been a lot of discussion on pricing in the Slack group. How much should Craft cost? How much should a plugin cost? This article was posted as part of the discussion regarding what the price of “free” does for the “purchase” of a product.