Updated: 03 September 2024
Laravel Forge is a server management and application deployment service.
Freelance software engineer United Kingdom
Updated: 03 September 2024
Laravel Forge is a server management and application deployment service.
Updated: 09 May 2024
CodeIgniter 4 Development
https://github.com/codeigniter4/CodeIgniter4
This repository is for the legacy version, CodeIgniter 3
https://github.com/bcit-ci/CodeIgniter
Updated: 06 May 2024
IP address of host from inside of Homestead: 10.0.2.2
Connect via ssh, from the Homestead directory
vagrant ssh
Run composer with php version 7.2
php7.2 /usr/local/bin/composer update
Reset to original state
vagrant destroy --force && vagrant up
Reload
vagrant reload --provision
Check which PHP versions have xdebug enabled
phpquery -v 5.6 -s fpm -m xdebug
phpquery -v 7.0 -s fpm -m xdebug
phpquery -v 7.1 -s fpm -m xdebug
phpquery -v 7.2 -s fpm -m xdebug
phpquery -v 7.3 -s fpm -m xdebug
phpquery -v 7.4 -s fpm -m xdebug
phpquery -v 8.0 -s fpm -m xdebug
phpquery -v 8.1 -s fpm -m xdebug
phpquery -v 8.2 -s fpm -m xdebug
phpquery -v 8.3 -s fpm -m xdebug
Enable the Xdebug module for the fpm SAPI of PHP version 5.6
phpenmod -v 5.6 -s fpm -m xdebug
Updated: 23 November 2024
Updated: 10 December 2024
See https://symfony.com/doc/current/testing.html
KernelTestCase
.WebTestCase
.The output of make:test
supplies a useful summary
root@5b8333e33939:/var/www/html# bin/console make:test
Which test type would you like?:
[TestCase ] basic PHPUnit tests
[KernelTestCase ] basic tests that have access to Symfony services
[WebTestCase ] to run browser-like scenarios, but that do not execute JavaScript code
[ApiTestCase ] to run API-oriented scenarios
[PantherTestCase] to run e2e scenarios, using a real-browser or HTTP client and a real web server
Updated: 23 November 2024
Generate a migration by comparing your current database to your mapping information
bin/console doctrine:migrations:diff
Create a new migration based on database changes
bin/console make:migration
List all configured routes in application
bin/console debug:router
Display environment variables used in the container
bin/console debug:container --env-vars
Dump the default configuration for security
bin/console config:dump-reference security
Updated: 04 April 2024
Prepare for a new run
rm -r src/Entity/*
rm -r src/Form/*
rm -r src/Controller/*
rm -r src/Repository/*
rm -r templates/*
Copy in a backup of base twig template
cp base.html.twig templates/
Generate entities from an existing database
bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
bin/console make:entity --regenerate App
Make CRUD for each new entity
bin/console make:crud MyEntity
bin/console make:crud AnotherEntity
...
Adjust file permissions
sudo chown -R chris:chris templates/
sudo chown -R chris:chris src/Entity/
sudo chown -R chris:chris src/Controller/
sudo chown -R chris:chris src/Form/
Now, sql insert data fixtures
...