PHP code example of rtfirst / llms-txt
1. Go to this page and download the library: Download rtfirst/llms-txt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rtfirst / llms-txt example snippets
bash
# Static analysis (from DDEV project root)
ddev exec vendor/bin/phpstan analyse packages/llms_txt/Classes --level=8
# Code style check
ddev exec vendor/bin/php-cs-fixer fix packages/llms_txt --dry-run
# Fix code style
ddev exec vendor/bin/php-cs-fixer fix packages/llms_txt
bash
# Run unit tests (from DDEV project root)
ddev exec "cd packages/llms_txt && ../../vendor/bin/phpunit --bootstrap ../../vendor/autoload.php"