Skip to content

Instantly share code, notes, and snippets.

@sohyl87
sohyl87 / PHP: parse tweets (replace links,hashtags,& user mentions)
Last active July 20, 2018 18:55
Parse Tweets when they are fetched from twitter such that links, user mention, & hashtags are linked & are not just text.
@craigbeck
craigbeck / introspection-query.graphql
Created April 6, 2016 20:20
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
@tomaj
tomaj / find_used_composer_php_extensions.sh
Last active April 11, 2016 17:01
Find all php extensions used in composer project(s)
# Be carefull - find also optional extensions
find . -name "composer.json" -exec grep -H '"ext-' {} \; | awk -F '"' '{print $2}' | sort | uniq
@ruudk
ruudk / README.md
Created December 8, 2022 15:35
How to find the files that are the slowest to analyze with PHPStan?

How to find the files that are the slowest to analyze with PHPStan?

For us, PHPStan became a bit slower with every release. We have a very large codebase with 10.000+ classes. There seem to be a few known issues related to big arrays.

See: phpstan/phpstan#8353 phpstan/phpstan#8146

To understand which files are problematic we run the following command: