Skip to content

Instantly share code, notes, and snippets.

View MrHuli's full-sized avatar

Ross Hulley MrHuli

View GitHub Profile
@jenkoian
jenkoian / dep-questions.md
Last active September 3, 2019 15:34
So you want to use a third party dependency eh?

Questions to ask before deciding on a third party dependency

  • Is it popular? (is it known by the community, does it have a large number of stars on github, large number of downloads etc.)
  • Is it of sufficient quality? (is it well tested etc.)
  • Is it well documented?
  • Are there multiple active maintainers?
  • How will you manage the dependency should it fall in to abandonment?
  • Can you easily write a wrapper for the dependency? (ports and adapters and all that jazz)
  • Is it quicker to write the functionality than it would be to write a wrapper? (if so, consider rolling your own?)
  • Does it have a small footprint? (i.e. doesn't bring in loads of other dependencies itself)
@Im0rtality
Im0rtality / README.md
Last active March 17, 2023 14:36
PHP CLI Debugging in Vagrant using Xdebug and PHPStorm

In host:

  1. Go to PHPStorm Settings > Project settings > PHP > Servers
  2. Add server with following parameters:
    • Name: vagrant (same as serverName= in debug script)
    • Host, port: set vagrant box IP and port
    • Debugger: Xdebug
    • [v] Use path mappings
    • Map your project root in host to relative dir in guest
  • Hit OK