Skip to content

21 screenshot#22

Merged
philipnorton42 merged 11 commits intomainfrom
21_screenshot
Mar 7, 2026
Merged

21 screenshot#22
philipnorton42 merged 11 commits intomainfrom
21_screenshot

Conversation

@philipnorton42
Copy link
Contributor

@philipnorton42 philipnorton42 commented Mar 7, 2026

Addresses #21

  • 21: Updated the minimum PHP version to 8.2.
  • 21: Updated the Url class to include the port, a url rebuild method to reconstruct the normalised url, and a hash method to turn the url into a string.
  • 21: Adding the screenshot data to the results object so that the raw file data can be passed back upstream.
  • 21: Fixed a phpstan issue in the sitemap checker command.
  • 21: Added the ability for the chrome crawler class to save screenshots. Added a trait so that this functionality could be applied to other classes if needed. Made a rudementary 'can i take screenshot' check on the root CrawlerBase class to take the guesswork out of if this or that crawler has the ability to take screenshots. The chrome interface allows for files and data to be extracted from the page, so this allows for both, saving the file using a hash of the url and sending the file data to the results object.
  • 21: Added an example of using the chrome crawler to take a screenshot of a web page.
  • 21: Updated composer libraries to cover third party security problems.
  • 21: Required packages require PHP8.4 so increasing the minimum php version to 8.4.
  • 21: Fixing the github workflow by adding php 8.4.
  • 21: Adding checkout step to the github workflow.

…o reconstruct the normalised url, and a hash method to turn the url into a string.
Added a trait so that this functionality could be applied to other classes if needed. Made a rudementary 'can i take screenshot' check on the root CrawlerBase class to take the guesswork out of if this or that crawler has the ability to take screenshots. The chrome interface allows for files and data to be extracted from the page, so this allows for both, saving the file using a hash of the url and sending the file data to the results object.
@philipnorton42 philipnorton42 merged commit f969e19 into main Mar 7, 2026
1 check passed
@philipnorton42 philipnorton42 deleted the 21_screenshot branch March 7, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant