James McDonald
James McDonald
  • Видео 61
  • Просмотров 88 306
CakePHP 5 - Dependency Injection using the Registry Pattern
This is video is based on a blog post at rizqi.id/laravel-registry-pattern
It shows how to register multiple different classes into the Dependency Injection container using the Registry Pattern and then select them at run time
Code: github.com/toggenation/di-registry-pattern
Просмотров: 185

Видео

CakePHP 5 - Case Insensitive Username or Email Login with a Custom Resolver
Просмотров 2625 месяцев назад
Code: github.com/toggenation/cakephp5-with-auth-plugins 0:6:04 Adding a database field using a migration 0:7:30 Modifying Application.php to allow email/username auth 0:15:07 Debugging SQL queries 0:21:00 Ajax Token auth with GET or POST
Use PHPMailer or SwiftMailer to create and send messages with the GMail API quickstart sample script
Просмотров 2055 месяцев назад
How to create and send Mime formatted emails using PHPMailer or SwiftMailer and then send them using the GMail API and the quickstart.php sample script from github.com/googleworkspace/php-samples/blob/main/gmail/quickstart/quickstart.php Includes attaching files and embedding images inline.
Deploy OPNSense in Azure from Scratch
Просмотров 1,4 тыс.5 месяцев назад
- How to create and upload an OPNSense Hyper-V image and deploy it in Azure in a 2 NIC configuration - Includes creating Azure virtual network, network interface card & routing table - Deploy a Ubuntu Virtual Machine behind OPNSense and use port forwarding to publish SSH on a non-standard port and a HTTP Web server - Configure OpenVPN Remote Access using OpenVPN Connect client on Windows 11 00:...
Sending Email using the GMail API - OAuth2 Modern Authentication
Просмотров 5 тыс.6 месяцев назад
Google will be disabling access to less secure apps soon. This is how to setup, authenticate and send an email using the quickstart.php demo PHP file from the Google Workspace developer samples GitHub repo: github.com/googleworkspace/php-samples/blob/main/gmail/quickstart/quickstart.php Code for this video: github.com/toggenation/gmail-api-example If I get time this first example will build to ...
CakePHP 5 - Install Live and Development Environments on Ubuntu 24.04 VM
Просмотров 2277 месяцев назад
Parallel php8.3-fpm live and test environments Installing and connecting to Postgres DB Passing environment variables via dotenv or fastcgi_params Sample code: github.com/toggenation/cakephp-live-test-sxs 00:00 Intro 00:57 Enabling password-less sudo for a user 01:50 Displaying the IP address of the VM 03:40 Generate a SSH key on Windows 11 and configuring VM for public key access 07:06 Install...
CakePHP 5 - Modelless Form + EncryptedCookieMiddleware
Просмотров 32310 месяцев назад
Shows how to save and pre-fill fields in a Modelless Form from Cookies generated by the Encrypted Cookie Middleware
CakePHP 5 - Token Authentication
Просмотров 1,1 тыс.10 месяцев назад
Configuring token based authentication github.com/toggenation/cakephp5-with-auth-plugins
CakePHP 5 - Basic Testing using Migrations, Seeds, Fixtures & Fixture Factories
Просмотров 1,2 тыс.Год назад
This is a rough run through of tests Covers: - Getting the default PagesControllerTest's running after upgrading to CakePHP 5. Include upgrading and tweaking phpunit.xml.dist - Fixing tests to stop them failing due to Authentication redirects - Building your own custom test schema creator tool (creates tables from default database in the test databases) - Using Fixtures - Basic use of Fixture F...
CakePHP 5 - Upgrade from CakePHP 4 to 5
Просмотров 1,2 тыс.Год назад
Demo of upgrading from CakePHP 4.4.10 to CakePHP 5.0.2 1:08 Upgrade to ErrorTrap and ExceptionTrap classes 5:05 Using the upgrade tool 11:02 Re-enable global functions 12:19 Fixing some deprecations 14:49 The difference between CakePHP 4 and 5 paginate contain
Create pfSense Community Edition in Azure with 2 NICs using the Azure Portal
Просмотров 2,5 тыс.Год назад
Warning: The latest version of pfSense CE (2.7.2) has broken package installation and update after it is launched in Azure. You might want to try Opnsense if you are standing up a low cost development or testing environment. Please see my previous "pfSense Community Edition on Azure with 2 NICs using Powershell" video on how to create and upload the pfSense Community Edition VHD. Then continue ...
OpenVPN Access Server in Azure - LDAP Auth, MFA, NAT & Routing modes
Просмотров 734Год назад
Covers creating the Virtual Network to enabling LDAP Authentication against a Domain Controller, Multi-Factor Authentication using Google or Microsoft Authenticator and finally switching from NAT to Routing mode. 00:00 Intro 00:39 Create Virtual Network 02:38 Deploy OpenVPN Access Server from Marketplace 03:42 Create a RSA SSH priv/pub key for authenticating with OpenVPN AS 05:50 Deploy a Domai...
PFSense Community Edition on Azure with 2 NICs using Powershell
Просмотров 4,6 тыс.Год назад
Note: Loading pfSense CE (2.7.2) into Azure as below results in broken updates and package install functionality. Look at OPNSense as an alternative. Covers installing pfSense Community Edition in Hyper-V, uploading the VHD to Azure and configuring for 2 NICs with Powershell to protect a back end subnet and have the back end devices use the pfSense as the firewall / network gateway. Powershell ...
CakePHP 4 - Creating a Plugin and Helper to Embed phpinfo output into a view
Просмотров 286Год назад
2:10 How to create a PhpInfo Plugin & Info Helper with bin/cake bake. 4:40 Use ob_get_contents to capture output into a variable 21:22 Shows pushing the Plugin to GitHub and then using composer to install it into the vendor directory
CakePHP 4 - Caching the Output of Long Running Processes & Dependency Injecting a Service Class
Просмотров 197Год назад
Caching the output of long running processes. Adding a Service Class to the Dependency Injection container.
CakePHP 4 - Nginx+PHP 8.2 with XDebug+Mysql on Windows 11
Просмотров 531Год назад
CakePHP 4 - Nginx PHP 8.2 with XDebug Mysql on Windows 11
CakePHP 4 - Enabling DebugKit Error Screen Links for VSCode in WSL and Docker Containers
Просмотров 211Год назад
CakePHP 4 - Enabling DebugKit Error Screen Links for VSCode in WSL and Docker Containers
CakePHP 4 - 4/4 InertiaJS - React Return to same page after delete
Просмотров 83Год назад
CakePHP 4 - 4/4 InertiaJS - React Return to same page after delete
CakePHP 4 - 2/4 Create an Inertia React Index Page
Просмотров 126Год назад
CakePHP 4 - 2/4 Create an Inertia React Index Page
CakePHP 4 - 3/4 Implementing pagination using InertiaJS - React
Просмотров 164Год назад
CakePHP 4 - 3/4 Implementing pagination using InertiaJS - React
CakePHP 4 - 1/4 Install and Configure Inertia and React in an Existing BootstrapUI Application
Просмотров 507Год назад
CakePHP 4 - 1/4 Install and Configure Inertia and React in an Existing BootstrapUI Application
CakePHP 4 - Using the Muffin/Footprint Plugin to Pass Logged in User Info to the Model Layer
Просмотров 144Год назад
CakePHP 4 - Using the Muffin/Footprint Plugin to Pass Logged in User Info to the Model Layer
CakePHP 4 - InertiaJS and React using the cakephp-inertiajs adaptor by Ishan Vyas
Просмотров 712Год назад
CakePHP 4 - InertiaJS and React using the cakephp-inertiajs adaptor by Ishan Vyas
CakePHP 4 - Adding a Custom Helper
Просмотров 333Год назад
CakePHP 4 - Adding a Custom Helper
CakePHP 4 - Enable the Tree Behavior in a table with existing records
Просмотров 336Год назад
CakePHP 4 - Enable the Tree Behavior in a table with existing records
CakePHP 4 - Creating a Form to Edit Multiple Levels of Associated Data
Просмотров 633Год назад
CakePHP 4 - Creating a Form to Edit Multiple Levels of Associated Data
CakePHP 4 - Saving multiple levels of associated data
Просмотров 581Год назад
CakePHP 4 - Saving multiple levels of associated data
CakePHP 4 - JSON and XML views
Просмотров 3632 года назад
CakePHP 4 - JSON and XML views
CakePHP 4 - Redirecting back to the correct index page on Delete and Edit
Просмотров 1762 года назад
CakePHP 4 - Redirecting back to the correct index page on Delete and Edit
CakePHP 4 - Using the Tree Behavior to create a Bootstrap 5 menu
Просмотров 9122 года назад
CakePHP 4 - Using the Tree Behavior to create a Bootstrap 5 menu