-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update composer dependencies, add php-cs-fixer, phpstan with config #208
base: main
Are you sure you want to change the base?
Conversation
ptrcksc
commented
Aug 16, 2024
•
edited
Loading
edited
- Update composer dependencies to php 8.1 max.
- Add php-cs-fixer config.
- Add phpstan config.
- Format code.
- Create phpstan baseline, fix one broken return type.
- Refactor wp.php into seperate classes.
- Add typehints to properties in src/Blocks/
- Format readme into new style.
- Upgrade demo app to laravel 10 (php8.1 support).
- Add image upload example to demo app.
- add eslint config.
- format js code.
4eb3a22
to
1cf0a4b
Compare
README.md
Outdated
|
||
## Quick start | ||
|
||
### Installation | ||
|
||
Install package using composer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Composer capitalized please :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And would it be good to mention the minimum requirements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And would it be good to mention the minimum requirements?
I do not think so, the PHP requirement is set in the composer file: "php": "^8.1",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's handy, but people first land on the readme, so if they want to know if their environment can work with this package they would need to check the Composer file, which requires extra clicks.
README.md
Outdated
<a href="https://van-ons.nl"> | ||
<img src="https://van-ons.nl/assets/mail/logo-vo-groen-2019-mail.png"/> | ||
</a> | ||
<br><br><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can go, as it's replaced with the one at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logo is still here.
* @since 5.0.0 | ||
* @var int | ||
*/ | ||
public $token_start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be camelCase
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The constructor parameters should also be camel case.