GitHub opens integrations marketplace
https://github.com/marketplace
You can integrate with Travis CI, Codecov, Dependabot, Sentry, Blackfire and many more in a couple clicks often on a special price. And all of them paid with your or your company's account on GitHub. For me this marketplace is useful because of list of all modern trandy SaaS-services. Btw there is another one list like this β Slack marketplace.
#saas
https://github.com/marketplace
You can integrate with Travis CI, Codecov, Dependabot, Sentry, Blackfire and many more in a couple clicks often on a special price. And all of them paid with your or your company's account on GitHub. For me this marketplace is useful because of list of all modern trandy SaaS-services. Btw there is another one list like this β Slack marketplace.
#saas
ββAnd Composer again. If you like to make all the packages in composer.json being sorted by their names and doing it every time by your hands then I've got a very good news for you. You can just add "sort-packages": true into the config section in the file and
And if you prefer to load dists then you can also add a paramater for that. You can find more setting in the docs (https://getcomposer.org/doc/06-config.md).
#composer
composer require
will automatically sort your packages list alphabetically.And if you prefer to load dists then you can also add a paramater for that. You can find more setting in the docs (https://getcomposer.org/doc/06-config.md).
#composer
If your API documentation is perfectly fine (ha-ha) in a API Blueprint or Swagger format then Dredd could be helpful for you. This tool for checking API responses could not only check response code, but also check JSON fields types to match the API. And of cource you can integrate Dredd with your favourite CI tool.
And if documentation exists only in your head then it could be a good reason to start formalize it. BTW if you prefer SaaS then there is Runscope for that and it costs $79 per month.
I think that good to have both of this tools β API on your production server could be different from documentation not only because of bad code review, but also because of consistency problem like if you deleted the user from DB and didn't delete his comments due to some error.
#saas #testing #api
And if documentation exists only in your head then it could be a good reason to start formalize it. BTW if you prefer SaaS then there is Runscope for that and it costs $79 per month.
I think that good to have both of this tools β API on your production server could be different from documentation not only because of bad code review, but also because of consistency problem like if you deleted the user from DB and didn't delete his comments due to some error.
#saas #testing #api
Brotli β is the new data compression algorithm from Google and in September a stable version were released. Here is four things you should know about algorithm which could replace gzip.
β’ In some tests it is 20% more effective than gzip on speed and coefficient of compression.
β’ There are libs for all modern web-servers. Here is, for nginx for example.
β’ Since September brotli is supported by 70% market share browsers including last Safari.
β’ Cloudflare recommends use gzip for small files Π°nd brotli for bigger ones (but article is quite old).
#devops #nginx
β’ In some tests it is 20% more effective than gzip on speed and coefficient of compression.
β’ There are libs for all modern web-servers. Here is, for nginx for example.
β’ Since September brotli is supported by 70% market share browsers including last Safari.
β’ Cloudflare recommends use gzip for small files Π°nd brotli for bigger ones (but article is quite old).
#devops #nginx
ββJSON5 is starting to take off.
It is a new JSON extension format making it more convenient to write by hands.
In JSON5 you can:
β’ use comments,
β’ use single quotes,
β’ write keys without quotes at all,
β’ add a trailing comma everywhere,
and many more.
PHP library
#php #library
It is a new JSON extension format making it more convenient to write by hands.
In JSON5 you can:
β’ use comments,
β’ use single quotes,
β’ write keys without quotes at all,
β’ add a trailing comma everywhere,
and many more.
PHP library
#php #library
Maybe I should start the channel with that link. It's very important start point for every PHP developer regardless of experience. Junior developer could save two year by reading and trying everything what is written there, Senior could look at things he knows from a different angle.
http://www.phptherightway.com/
http://www.phptherightway.com/
Today we've found interesting bug β when nginx returns empty
You can check it here: https://dtf.ru/test-524
There is simple config:
524 A Timeout Occurred
error response, Safari downloads empty .dms-file instead of showing some error page.You can check it here: https://dtf.ru/test-524
There is simple config:
location /test-524 {
return 524;
}
About copy-paste again.
Today i've learned a difference between
#php
Today i've learned a difference between
sprintf("%015.2F", $var)
and sprintf("%015.2f", $var)
. In function which i've copied from first google search result was the second variant and suprisingly it's result depends from locale. It become clear only on stage server, where code cannot find the dot in the result.#php
Pretty interesting I think; Danny van Kooten writes that two years ago they moved from Laravel to Go because Go is great (and that's true) and now they are moving back to PHP (Symfony 4) because PHP is much more maintainable when you have a usual website.
I have thoughts about rewriting all our code to Go constantly, and I am trying to drive it away every time; because from a business perspective, it's an awful idea. So we are indulgΡ ourselves by writing small microservices on Go and taking a bath with static typing and goroutines.
https://dannyvankooten.com/from-go-back-to-php-again/
I have thoughts about rewriting all our code to Go constantly, and I am trying to drive it away every time; because from a business perspective, it's an awful idea. So we are indulgΡ ourselves by writing small microservices on Go and taking a bath with static typing and goroutines.
https://dannyvankooten.com/from-go-back-to-php-again/