Has anyone here tried PHP On Pie? [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I created this framework to fill what I felt was a need for a PHP-like framework that was really efficient. My goal is to make it into a real open-source project, but since I have never launched a popular open-source project, I could use some feedback and advice.
My question is, has anyone here used it, and if so, what was your experience?
Whether you have or haven't, do you have any advice for the non-programming aspects? What is it missing, in terms of
Documentation
Out of the box ease of use
Community features and support
Whatever else I can't think of right now.
Basically any advice on how I can take it from its current state and make it at least somewhat popular?
http://phponpie.com

I saw this before, but I wasn't sure at all why I should use this instead of Zend Framework or Symfony, so as zerkms said, it seems like just another framework.
The code quality has some question marks about it as well. The code seems to mix and match PHP4 and PHP5 styles (no visibility declaration on some class methods, some class constructors used PHP4-style constructors...) and it had inconsistent file naming (interface iDb in Db.php) and inconsistent coding style, even in the same file.
Not sure how easy it would be to unit tests apps written with this either.

Related

Is it worth to use latest versions of PHP and related frameworks? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have to maintain a website written in PHP running on version 5.3.22, smarty 2.6.19. The whole site is divided into two dependent subsites (one for the world and second one as CMS site for admin).
The company which developed this solution took the easy way out, just delivering already built product after few modifications. I'm on my way to merging everything into one suited piece.
My question is: is it worth to merge everything to native PHP, leaving Smarty convention, deliberately not using any of modern framework etc.? Is it worth to keep developing my own class for generating HTML (eg. createTag('th',attributes,value))? What are the benefits of using newest versions of PHP, Smarty and so on?
It is recommend to update software whenever there is an update available. The same goes for php, smarty and so on but whenever updating php, smarty or any other programming / scripting language have in mind you possibly have to refactor sourcecode - think twice.
Template engines such as smarty are very useful as they strictly divide business logic and the view.
The third point you mentioned are frameworks. As Kvothe mentioned already "Don't reinvent the wheel". That's why a lot of php frameworks exists in the www. Each has it advantages and disadvantages - I recommend to test some and choose the one you like most.

Language Allowing Rapid Development And Refactoring To Best Practices [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have looked at languages such as PHP, Python, Ruby and Skala. However, I haven't found any language that meets the requirement below:
I'm looking for a language that is lax enough to quickly write a web application prototype with (without bothering with best practices), but is also sophisticated enough to support me when trying to "refactor to design patterns".
Is there a language/web framework specifically created for this purpose? An example would be PHP, optionally acting like Java if the developer requires it.
Refactoring bad code "to design patterns" has nothing to do with the language's sophistication.
You can really try any of the mentioned languages and see which one is the easiest for you to learn, you can't go wrong with any of them.

How useful could be an html generator class? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm working on my first opensource project, and I found useful do do an html generator class, treating the html elements as php objects, but now I don't know if it really makes sense in the real world.
Have you ever needed an html generator class for you projects?
If your answer is yes, what would you find useful on it?
If someone wants to help in the project, you are welcome to the repository on github.Github repo
Thank you.
This approach, although liked by many at first sight, always fails a reality check.
Please learn about templates - the only way to go in dealing with HTML from PHP applications.
You need them only if you are some outsourced worker from India or China. Otherwise do not use them since you have potential to ruin your career and credibility.
Those tools are built for doing very dirty code without any future prospects.

Using Java-Style Namespace Convention in PHP or is it better to use X? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I know that Namespaces in PHP are relatively new and so there are many possibilities to use them. Because it was not usable on the Server i did define my classnames like folder_folder_classname if they where in /folder/folder/classname.php
Now i want to change that to get better class names. I thought to redesign my class structure to a java based one, like com\domain\project\folder\folder\class (e.g. in java: com.domain.project.folder.folder package structure) and was thinking that this is a nice solution to avoid any problems with other classes i ever use and don't think about include() for my classes any more :)
So now my Questions:
Is this a good idea or should I use a better system for my php classes?
Is there a common handling for that in php?
(I saw that Zend Framework uses e.g. instead of Zend_Controller_Request_Abstract the namespace Zend\Controller\Request with class name RequestAbstract -> no domain and double wording...)
thanks for your answers :)
I would definitely avoid using the domain wording and just prepend the project name itself like Zend does (that way you avoid collision, too). Since you are thinking about restructuring and if you are using PHP > 5.3.0 (which you should) you might also want to consider the PHP namespaces.

Symfony VS CakePHP : which one is closest to PHP [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm mostly a Rails developer but sometimes, I have to code in PHP. Because stackoverflow.com prefers questions that can be answered, I'd like to have a idea which one of the two is closest to PHP?
Sometimes, I'm under the impression that CakePHP is a outdated copy of Rails that wants to look like Ruby but fails at it and thus leaving the best of PHP behind.
there are loads of questions dealing with the php framework issue.
for example:
php-framework-decision-analysis-paralysis
what-php-framework-would-you-choose-for-a-new-application-and-why
which-php-framework-is-closest-to-ruby-on-rails-cakephp-codeigniter
I don't think this question will bring anything new to light.
besides I think the framework of choice is more and more Zend Framework (IMHO).
How would you define closeness?
All frameworks are written in 100% PHP, non of them could be any closer to PHP. They are PHP.
I like symfony because it doesn't have PHP4 compatibility as a business goal. This lets the framework ditch some of the cruft and limitations of PHP4 and leverages the much stronger OOP in PHP5.

Categories