News for hackers. Stuff that matters.

ivopetkov

Re:Show HN: HTML5 DOM in PHP (with included query selectors) on Saturday December 23, 2017 @02:33PM (#15995822)
Hi folks. I would like to share this library of mine. I've been using, improving and optimizing it for the last year and a half. I think it turns out great. I hope it will be useful for you too. Any suggestions and recommendations are welcome.
Thumbs up. I also use some AWS services, and the results are awesome.
Updates will be manual as the installation itself.
Re:Show HN: A PHP framework born in 2016 on Wednesday January 27, 2016 @04:11PM (#10983415)
Don't get me wrong. I think PSR standards are great, just not all of the fit into this framework. In PSR-7, for instance, Request and Response objects are immutable. Imagine the framework when this concept is applied to other objects. It will be a much different beast.
Re:Show HN: A PHP framework born in 2016 on Wednesday January 27, 2016 @03:01PM (#10982714)
Here is another thing that is different from many other frameworks. The Bear Framework API is designed, so you don't write all the time "vendor\", "Vendor::", "use vendor\" and so on. You write "$app->assets->getUrl()", or "$app->data->get()" and we believe this makes your app much more personal. You might even forget that you are using Bear Framework :)
Re:Show HN: A PHP framework born in 2016 on Wednesday January 27, 2016 @02:52PM (#10982614)
Not sure what you mean. Can you give us an example.
Re:Show HN: A PHP framework born in 2016 on Wednesday January 27, 2016 @02:50PM (#10982599)
Here are some benefits: - Lighter than most other frameworks (including the so-called micro framework). It's about 40 files. - Fast and memory efficient. There will be benchmarks soon. - Simple API. Perfect for newbies. - Fast installation - just download and run. No installers. - Addons support. - File-based object storage for quick start. - Some nice utilities for assets.

Some PSR standards are taken into account, but not all of them. The goal is to provide simple to use and extendable framework that helps you do projects of any size.

Re:Show HN: A PHP framework born in 2016 on Wednesday January 27, 2016 @02:17PM (#10982298)
The goal of Bear Framework is to help you start your next web project in less than a minute and help you make it successful. You've got routing, data storage, addons, logging, assets helpers and many more useful tools.

The documentation is available at http://bearframework.com/documentation/

Can you please give us an example user control where: 1. you've got CSS and JS code that goes in the head tag of the result document 2. you've got JS code that stays at the bottom of the body tag of the result document
Currently, there isn't an automatic solution. For now the component developer can use the component id (automatically generated if not specified) to separate styles. You can see such component at https://github.com/ivopetkov/ivopetkov.github.io/blob/master...
Thanks. It really looks a lot like React, RiotJS and WebCompoments (because they are all great) but it's on the server.
Thank you.
Re:Lazy load responsive images on Saturday August 22, 2015 @05:39PM (#10103872)
There is a WebP support now. Thank you.
Re:Lazy load responsive images on Thursday August 20, 2015 @05:09PM (#10094684)
Just tested it on latest iOS and worked like a charm. What device and iOS version you got?
Re:Lazy load responsive images on Thursday August 20, 2015 @05:07PM (#10094669)
Maybe you mean non-minified. You can find it at https://github.com/ivopetkov/responsively-lazy/
Re:Lazy load responsive images on Thursday August 20, 2015 @05:05PM (#10094658)
It will be great if browsers do this. And yes, the noscript tag is a valid solution.
Re:Lazy load responsive images on Thursday August 20, 2015 @04:59PM (#10094615)
That will be nice update. Thanks.
Re:Lazy load responsive images on Thursday August 20, 2015 @11:27AM (#10092447)
The browser support is currently 62% and rising, and a high-quality image can be shown on "not modern" browsers. So in terms of showing quality images the best possible way the support is almost 100% (we already discussed the case with the disabled JavaScript).
Re:Lazy load responsive images on Thursday August 20, 2015 @09:00AM (#10091527)
If the browser is "modern" the blank image in the srcset will be loaded, not the image. And then nobody will load the correct image version. This is the problem i think.
Re:Lazy load responsive images on Thursday August 20, 2015 @08:58AM (#10091523)
Its fixable and will be great update. Thanks.

Older »