shim
Shim version of PHP CS Fixer (by PHP-CS-Fixer)
php-generics
PHP generics written in PHP (by mrsuh)
shim | php-generics | |
---|---|---|
2 | 7 | |
16 | 205 | |
- | - | |
7.9 | 3.9 | |
15 days ago | 25 days ago | |
PHP | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shim
Posts with mentions or reviews of shim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-03.
-
How come there is no such thing as an equivalent to TypeScript in PHP?
If you're working in a PHP project, tools like php-cs-fixer and phpstan help standardize your code and require a stricter coding style without having to resort to a whole new language.
- GitHub - laravel/pint: Laravel Pint is a minimalist code style fixer for PHP.
php-generics
Posts with mentions or reviews of php-generics.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-03.
-
How come there is no such thing as an equivalent to TypeScript in PHP?
Hi. I'm the author of the library which brings generics into PHP like TypeScript https://github.com/mrsuh/php-generics. Libraries like this have a few big problems to start using them freely:
-
Parsing with PHP, Bison and re2c
I used this knowledge to create the PHP generics library.
-
Comparing PHP Collections
Hi! I don't think so. Is used this library to translate generics syntax into regular PHP syntax. It's not equal to real PHP generics (like Hack did). IDE doesn't support PHP generic syntax yet. You can read about it here.
If you are only using simple collections you can use array - it is very fast and requires little memory. PHP doesn't support generic syntax and IDE can't make hints about the type of objects in a collection (yet), but if you want PHP to do type checks at runtime you can test the php-generics library.
-
PHP type erasure generics
A few months ago I created a PHP generics library with monomorphic generics. Today I released version 1.2.0 with type erase generics.
-
Generics implementation approaches
This approach has a big memory effect. PHP doesn't support native generics, but you can test monomorphized generics with my library.
-
PHP Generics. Right here. Right now
} ``` Library: https://github.com/mrsuh/php-generics Example repo: https://github.com/mrsuh/php-generics-example Have a nice day!
What are some alternatives?
When comparing shim and php-generics you can also consider the following projects:
pint - Laravel Pint is an opinionated PHP code style fixer for minimalists.
php-generics-rfc - Mirror of https://wiki.php.net/rfc/generics for easier collaboration
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
php-var-sizeof - Function for getting size of any PHP variable in bytes
php-cs-fixer-ga - GithubAction for PHP-CS-Fixer
php-collections-comparison - https://dev.to/mrsuh/comparing-php-collections-5cca
phel-lang - Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.
ruby - The Ruby Programming Language
php-generics-example
PHP Parser - A PHP parser written in PHP
PHPT - The PHP Interpreter
shim vs pint
php-generics vs php-generics-rfc
shim vs PHP CS Fixer
php-generics vs php-var-sizeof
shim vs php-cs-fixer-ga
php-generics vs php-collections-comparison
shim vs phel-lang
php-generics vs ruby
php-generics vs php-generics-example
php-generics vs phel-lang
php-generics vs PHP Parser
php-generics vs PHPT