Re:Show HN: A PHP framework born in 2016
by laveur on Wednesday January 27, 2016 @02:50PM
(#10982598)
I've never felt that using an app like model for websites was a good idea. Maybe for web services but the website itself, if I have a page for say news. I want it to be self contained... and using shared code libraries...
Re:Show HN: A PHP framework born in 2016
by ivopetkov 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
by smt88 on Wednesday January 27, 2016 @02:22PM
(#10982334)
Why should someone use this over any other framework? And why aren't you using all the PSR standards?
Re:Show HN: A PHP framework born in 2016
by ivopetkov 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
by smt88 on Wednesday January 27, 2016 @03:28PM
(#10982976)
Following PSR standards doesn't make a framework less simple, and it has the benefit of making lots of middleware instantly usable by that framework.
Number of files isn't a useful metric because other microframeworks can be run without ever loading the router or any of the data storage classes. They could be run with less than 10 files loaded. And even then, it still doesn't matter because number of files just means number of classes, which doesn't say anything about the readability or simplicity of the code.
Re:Show HN: A PHP framework born in 2016
by ivopetkov 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.
The documentation is available at http://bearframework.com/documentation/