The essential news about content management systems and mobile technology. Powered by Perfect Publisher and XT Search for Algolia.
The News Site publishes posts to the following channels: Facebook, Instagram, Twitter, Telegram, Web Push, Tumblr, and Blogger.
In this “Build and Beyond” video, Jamie Marsland highlights 10 WordPressers to keep an eye on in 2024.
A couple of weeks ago, we shared a list of 15 WordPress developers you should follow to stay on top of WordPress development news and tips. This video broadens the scope and features folks worth following, regardless of your role or experience with WordPress. If you’re at all interested in or curious about WordPress, these are folks to pay attention to.
Interested in a free trial that allows you to test our all that WordPress.com has to offer? Click below:
WordPress.com/JamieRemkus is a well-known figure in the WordPress community, recognized for his contributions to WordPress development and his overall expertise in web technology.
Kevin helps digital agency owners, freelancers, and web designers to learn best practices for UX/UI design, development, and CSS.
Tyler has free video lessons on YouTube that teach people how to create their own professional website without any coding experience.
Sabrina is a WordPress performance engineer, who’s daily work is to speed up WordPress websites, plugins, and themes.
Mike is a designer and principal software engineer from the USA. He builds killer products and brands that people love, including the fantastic Ollie WordPress theme.
Jonathan runs a small web development agency, creates courses, and makes YouTube videos. He started is WordPress-focused YouTube channel in late 2018.
Birgit works as developer advocate for WordPress, curates community voices on Gutenberg Times, and co-hosts the Gutenberg Changelog podcast.
For the past 20 years David has worked professionally developing websites and in IT management.
Paul has over 15 years of commercial web design and development experience working on a large range of diverse projects, with clients ranging from start-ups to blue-chip companies.
The WP Minute, founded by Matt, is a website dedicated to delivering the most important news and topics from the WordPress ecosystem, keeping WordPress professionals informed, educated, and entertained.
Imran has 17+ years of web design and marketing experience. His YouTube channel has over 55k YouTube subscribers.
Rich describes himself as a multidisciplinary maker specializing in the intersection of product, design, and engineering.
Jamie has trained over 5,000 people on WordPress in the past 10 years, and he also makes WordPress plugins. His YouTube channel is dedicated to helping people with WordPress Blocks.
Read more https://wordpress.com/blog/2024/04/09/10-wordpress-influencers-2024/
The Bartender package for Laravel is an opinionated way to authenticate users using Laravel Socialite. Bartender serves you a controller, routes, and a default implementation for handling authentication with Laravel Socialite providers. Almost everything in Bartender can be customized.
Using the configuration conventions, you can enable social logins by defining the routes and configuring the providers you're app will support:
// routes/web.php
use DirectoryTree\Bartender\Facades\Bartender;
Bartender::routes();
// config/services.php
return [
// ...
'google' => [
// ...
'redirect' => '/auth/google/callback',
],
'microsoft' => [
// ...
'redirect' => '/auth/microsoft/callback',
],
];
Bartender takes care of everything for you from here; however, you can also extend and customize everything from OAuth redirects and callbacks, user creation and handling, and user redirects and flash messaging.
You can learn more about this package, get full installation instructions, and view the source code on GitHub. You can install this package in your Laravel app with Composer:
$ composer require directorytree/bartender
$ php artisan vendor:publish --provider="DirectoryTree\Bartender\BartenderServiceProvider"
$ php artisan migrate
The post Bartender Is an Opinionated Way to Authenticate Users Using Laravel Socialite appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/bartender-laravel-socialite-package
The Joomla Project is pleased to announce the availability of Joomla 5.1 Release Candidate 2 for testing.
There are two main goals for Release Candidates:
For a complete list of known backward compatibility issues for version 5.1, please see Potential backward compatibility issues in Joomla 5.1 on the documentation site.
This release candidate version of Joomla 5.1 is not suitable for production sites. It is for testing only.
Where to get it?
To always use the latest build of Joomla 5, we invite you to use the nightly build packages (updated every night).
To make it easier for newcomers, you can launch a free Joomla 5 website for testing at launch.joomla.org.
Joomla! 5.1 (general availability) will be released on or about 16th April 2024. The planned milestones are:
Alpha
Beta (Feature Freeze)
Release Candidate (Language Freeze)
Stable Release
Please note that dates may be subject to change depending on the availability of volunteers and circumstances beyond our control.
We are firmly committed to making the next generation of Joomla the best. These are the features that have been committed to version 5.1.
As it's a release candidate, we now have a language freeze. From now on, no pull Requests touching the language files will be merged unless absolutely necessary (e.g., by fixing a critical bug). We’re two weeks away from a stable release, so the task is now: test, test, test.
We will not include any other new features in the 5.1 branch from now on. But you’re welcome to propose enhancements and fixes for existing features.
To learn more about our development strategy, please read this article.
To help ensure the 5.1 release and our major features are “production-ready”, we need your help testing releases and reporting any bugs you may find at issues.joomla.org.
We encourage extension developers to roll up their sleeves, seek out bugs and test their extensions with Joomla 5.1 and communicate their experience.
There are some tutorials to help you with Joomla 5. You can find the existing ones, like creating a Plugin or a Module for Joomla 5, namespaces conventions, prepared statements, using the new web asset classes and many more in https://docs.joomla.org/Category:Joomla!_5.x
We encourage developers to help write the documentation about Joomla 5 on docs.joomla.org and manual.joomla.org to help and guide users and other extension developers.
A JDocs page will help developers to see the existing documentation and the documentation still needed.
We invite you to check it regularly, update it and provide the missing content.
If you are an extension developer, please make sure you subscribe to the extension developer channel https://joomlacommunity.cloud.mattermost.com/main/channels/extension-development-room
Where you can join the community of extension developers.
A big thank you goes out to everyone who contributed to the release!...
Read more https://www.joomla.org/announcements/release-news/5906-joomla-5-1-0-release-candidate-2.html
Call it age. Call it apathy, if you must. I call it contentment. Much of my twenties were spent endlessly experimenting and searching for the perfect editor and workflow. As I read these words back to myself, I’m somewhat embarrassed. “Really? That’s what you spent your twenties doing?” Okay, well, not exclusively. I also like hiking. But, yes, if a new editor hit the market, I was first in line to test it out.
But that was a long time ago. Fast-forward to 2024, and I can’t remember the last time I installed a new code editor. In my eyes, PhpStorm won the IDE wars years ago. The quality and power that they’ve managed to bake into one application is truly staggering.
So, in that spirit, I’d love to share my setup and general workflow with you. As you’ll soon see, the term IDE no longer suggests an incredibly dense UI with hundreds of buttons (though that’s an option, if you prefer). No, I prefer a more minimal approach that I think you’ll appreciate. Okay, let’s do this!
When it comes to color themes, it has taken me a decade to realize that one of your IDE’s suggested defaults is usually the way to go. A plugin containing hundreds of themes, each of which misses the mark in some key area, isn’t a great experience. But your editor’s default themes have been battle tested in every possible configuration.
With that in mind, my preference these days is PhpStorm’s Dark theme, combined with their “New UI” (now the default layout).
Similarly, I also stick with the default JetBrains
Mono font at 15px
. Yes, it seems that age is
becoming a recurring theme for this article. Fifteen pixels looks
good to me now.
You’ll notice that I’ve also hidden line numbers and tabs. This is of course a personal preference - and a questionable one to many - however, it’s worth experimenting with for a day.
If you’d like to test it out, like all of PhpStorm’s various actions, you can toggle line numbers and tabs using the “Search Anywhere” menu, which defaults to a keybinding of “Shift + Shift.” Search for “line numbers” and “tab placement,” respectively.
For file traversal, I use a combination of the “Search Anywhere” and “Recent Files” menus. Even better, because all of PhpStorm’s file trees allow for instant filtering, I only need to open the “Recent Files” menu and begin typing the first few characters of the file that I want to open. It’s an incredibly fast workflow.
When it comes to plugins, the truth is that PhpStorm includes most of what you need straight out of the box. Support for Tailwind CSS, Vue, Pest, Vite, and Node - to name a small handful - are bundled from the start.
As a former Vim user who will never abandon the keybindings that I spent over a year drilling into my finger tips, I do pull in IdeaVim, which is effectively a Vim engine. And if you want to play around with custom UIs and themes, consider installing the Material Theme UI, Nord or Carbon plugins.
But - there’s one incredibly important plugin that deserves its own heading…
PhpStorm has a secret weapon that I’ve yet to see any competing editor match. Laravel Idea is a cheap third-party plugin (with a free 30 day trial) that provides an incredibly deep understanding of the Laravel framework.
It provides powerful code generation directly from your editor, Eloquent attribute auto-completion, pre-populated validation rules, smart routing completion, and so much more. Laravel Idea is the only plugin I pay for, and I do it without thinking. It’s that good.
Of course, Laravel and Artisan provide a variety of generators that can be triggered from the command line. However, if you prefer, you can instead run these generators directly within PhpStorm. Navigate to the “Laravel” tab in the menu bar, and choose “Code Generation.”
Here, you can choose your desired file type to generate. It’s so fast.
Notably, when generating an Eloquent model, you’ll be introduced to a dedicated dialog for configuring your desired fields, relations, and options.
Here, I can declare all of the appropriate fields for the model and toggle any companion files that should be generated in the process.
Let’s see another example. Imagine that you have an endpoint in
your routes file that stores a new Job
in the
database. Certainly, you should first validate the request data.
Rather than writing the rules manually, Laravel Idea can do it for
you.
Route::post('/jobs', function () {
request()->validate([
//
]);
});
Place the caret within the validate()
array, press
Cmd + n, and choose “Add Eloquent Model Fields.” Type the
name of the relevant model, Job
, and the plugin will
populate the array with the appropriate rules, like so:
Route::post('/jobs', function () {
request()->validate([
'employer_id' => ['required', 'exists:employers'],
'title' => ['required'],
'salary' => ['required'],
]);
});
Useful! Laravel Idea provides countless time-savers just like this. It’s an essential plugin for every Laravel user, in my opinion.
The best argument for a dedicated IDE is that you want an editor that deeply understands your underlying language. If I need to rename a variable, implement an interface, or extract a method, I don’t want to rely on regular expressions or a third-party extension. I want that functionality baked into the editor. I want these things working properly to be directly correlated to the financial success of Jetbrains.
If you’re anything like me, you probably have keyboard shortcuts seeping out of your ears at this point. It’s incredible that we can remember so many across a wide range of apps. With that in mind, while there are respective shortcuts for each of PhpStorm’s refactoring options, I use the catch-all “Refactor This” menu, which I bind to Ctrl + t. Open “Search Anywhere” and type “Refactor This” to open the menu manually. This will display a top-level refactoring menu, at which point I can select my preferred refactor.
As always, begin typing to instantly filter the menu items. If I need to, say, extract a method, I would type “extract” and press enter. That way, I never have to reach for the mouse.
Beginning with the 2024 edition of PHPStorm, you’ll find a new integrated terminal UI that’s significantly improved over previous iterations.
It now supports auto completion, command history (press up), isolated command blocks, and more. I’d recommend binding the integrated Terminal to a shortcut that you’ll remember - I prefer "Ctrl + ` (Backtick)" or Now, you can rapidly toggle the terminal without ever leaving your editor.
Testing in PhpStorm is a breeze. Whether you prefer PHPUnit or Pest, it has you covered. Open any test class or file, and you’ll find a Run icon beside each test definition. Give it a click to run that single test in isolation directly inside your editor.
Of course, not every test will pass. For this reason, it can often be useful to re-run the last test from anywhere in your project. This way, you can open a class, make a change, and instantly re-run the failing test to confirm that the issue has been resolved.
The command you want for this behavior is “Rerun.” To avoid touching the mouse, consider assigning a keybinding, such as “Shift + Command + T.”
Tip: You can configure your own keybindings within Settings → Keymap.
In the screenshot above, notice that the commented-out line
in Comment.php
has triggered a failing test. Let’s fix
the issue by uncommenting that line (if only all bugs were this
easy to solve), and rerunning the test (using Shift + Command +
T).
Wew!
PhpStorm of course includes support for automatic code formatting in a variety of code styles. Within the Settings menu, visit Editor → Code Style → PHP and click “Set From” to choose your style.
This is helpful, but if you’d instead prefer an external code formatter such as Laravel Pint, you can easily instruct PhpStorm to disable its internal formatter in favor of your external tool. This is precisely what I do.
Open your Settings menu once again, and visit PHP → Quality Tools. Here, you’ll find a handful of external formatters. Select “Laravel Pint” and you should be all set to go!
Next, it would be nice if we could instruct PhpStorm to perform a series of actions or commands each time we save a file. For example, format the file, optimize the imports (sort and remove unused), clean up the code, run ESLint, etc. This is what the “Actions on Save” menu is for. You can access it within the Settings menu, as usual: Tools → Actions on Save.
Select your preferred actions, and the editor will execute them each time you save a file.
Despite what its creator may suggest - 👀 - Xdebug can often be an exercise in frustration to install. It’s clear, though, that the PhpStorm team is well aware of this. They’ve done an excellent job making the process as simple and obvious as possible. Let me show you.
The first stop on your debugging journey is Settings → PHP → Debug. On this page, you’ll see a “Pre-Configuration” checklist to verify that you’ve properly installed Xdebug. Helpful!
This checklist roughly consists of installing Xdebug, choosing a browser toolbar extension, enabling listening for PHP Debug Connections, and then starting a debug session. I would highly suggest using the validator that PhpStorm links to in pre-configuration step one.
Validation Heads Up! If you’re using Herd Pro to automatically detect and enable Xdebug on the fly, PhpStorm’s configuration validator will fail if you simply copy the contents of
phpinfo()
directly from the command line (php —info | pbcopy
). Instead, signal to Herd that you intend to use Xdebug. One way to do this is by setting a breakpoint. Click inside the gutter for any line number. Next, echophpinfo()
and copy its output directly from the browser.
Once you follow each step in the pre-configuration checklist, you should be ready to roll. Set a breakpoint, load the page, and start debugging like the champion you are.
And that’s a wrap!
You may have noticed, but programmers tend to have… opinions. When it comes to code editors, they have even more opinions. Of course, choose the tool that best fits your personality and workflow, but I really do think PhpStorm is worth your time. Having used it for many years at this point, I continue to discover new features and time-savers that I never knew existed.
If I’ve piqued your interest, we have an excellent and free PhpStorm course over at Laracasts. In 2.5 hours, we’ll show you everything you need to know. 🚀
The post Jeffrey Way's PhpStorm Setup in 2024 appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/phpstorm-setup-2024
This PDF Optimizer package for PHP and Laravel applications for effortless optimization and compression of PDF files. PDF Optimizer utilizes Ghostscript to significantly reduce PDF file sizes. The PDF Optimizer package can be used in any PHP project but also offers Laravel-specific APIs that streamline working with PDF file optimization:
use Mostafaznv\PdfOptimizer\Laravel\Facade\PdfOptimizer;
use Mostafaznv\PdfOptimizer\Enums\ColorConversionStrategy;
use Mostafaznv\PdfOptimizer\Enums\PdfSettings;
$result = PdfOptimizer::fromDisk('local')
->open('input-1.pdf')
->toDisk('s3')
->settings(PdfSettings::SCREEN)
->colorConversionStrategy(
ColorConversionStrategy::DEVICE_INDEPENDENT_COLOR
)
->colorImageResolution(50)
->optimize('output-1.pdf');
dd($result->status, $result->message);
Another useful Laravel-specific feature is the ability to queue the optimization of your files:
use Mostafaznv\PdfOptimizer\Laravel\Facade\PdfOptimizer;
$result = PdfOptimizer::fromDisk('minio')
->open('input.pdf')
->toDisk('files')
->onQueue()
->optimize('output.pdf');
Other key features this package offers:
Fluent Method Chaining: Experience the elegance of a fluent and expressive API that seamlessly optimizes PDF files. Harness the power of nearly all Ghostscript options with ease.
Logger Support: Capture detailed logs to gain profound insights into the intricacies of the optimization process. Stay informed and in control with the integrated logger.
Customization: Tailor the optimization process to your exact needs. pdf-optimizer provides a customizable solution, allowing you to fine-tune your PDF optimization experience.
Laravel Integration: Specifically designed for Laravel applications, pdf-optimizer supports diverse input methods, including file paths, UploadedFile instances, and disk storage. This guarantees flexibility and user-friendly integration within the Laravel ecosystem.
Queue Support: Elevate your optimization process with asynchronous PDF file optimization using Laravel queues. pdf-optimizer seamlessly integrates with Laravel's queue system, ensuring efficient background processing.
You can get started with this package by checking out the official PDF Optimizer documentation; the source code is also available on GitHub at mostafaznv/pdf-optimizer.
The post Easily Optimize PDFs in Laravel with the Optimizer Package appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/pdf-optimizer
Page 6 of 1310