Where can I find a sample PHP MVC application? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been attempting to understand how MVC applications are structured and have spent time with frameworks like CodeIgniter and Zend making small test websites to play around with. However I'm still unsure if I completely understand how to separate the logic properly since it still seems like it's taking more time than it's saving.
I learn best from looking at well-written code and I have a feeling there are a few talented programmers on SO.
Are there any good "Real World" examples of a PHP MVC application that I could look over? I've made the mistake of not asking about best practices and instead pick up poor coding practices in the past and I want to avoid making such a mistake moving forward.
Thanks SO!

I found this PHP tutorial to be useful when I first wanted to improve my understanding.

I'm writing an open source bugtracker, you might want to have a look. The code may not be 100% neat and clean, but it's mostly better than worse ;). http://code.google.com/p/bugraid/

A pretty good basic Zend example is http://akrabat.com/zend-framework-tutorial/
Or you could just use ZFtool to create a project a very basic program and understand how it is brought together
>zf create project <path> from within the bin directory in your zend download

Related

Is there a site or app where you can get examples of code assignments? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Okey, so here I'm learning coding (mostly PHP, and frontend dev). And I would like to know if there is a site where I can get an assignment like "make a calculator" or similar.
So I can get inspiration for small projects while I'm learning. Learning by doing so to speak.
I don't want big projects. Something that I can make in one evening.
I have googled around but with no luck.
TL;DR, is there a site were I can find inspiration for small coding projects (PHP).
IMO Github is the best website to find projects related to any technology stack.
Refer these links for Guru99, CodeProject for some basic PHP projects.
Browse over CodePen for Frontend snippets.
I know a site
https://www.hackerrank.com and
https://www.hackerearth.com
There are coding challenges from basic to advance of almost every concept. I would recommend to give it a try.

PHP vs Python For Web Crawler [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i am planning to make web crawler which can crawl 200+ domain, which of the language will be suitable for it. I am quite familiar with PHP but an amateur at Python.
I have built crawlers in both languages. While I personally find it easy to make a crawler in python because of huge number of freely available libraries for html parsing, I would recommend that you go with the language you are most comfortable with. Build a well designed and efficient crawler in a language you know well and you will get even better at that language. There is no feature which can not be implemented in either of the two languages so just make a decision and start working.
Good luck.
You could just try both. Make one in php and one in python. It'll help you learn the language even if you're experienced. Never say no to opportunities to practice.

A tool to debug and test mod_rewrite (.htaccess) directives [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Although being a decent web developer, I and most of my colleagues always struggle with basic tasks when using mod_rewrite.
I read the manuals and understood most of it, however most skills I've learned in life are by doing. The trouble is, there's no easy way to debug the configuration. Most of the time if I succeed at configuring the .htaccess file it's by sheer random luck not by trial and error.
I realize one can read Apache error logs or pass rewriteRule results to GET parameters and present them in say, PHP files, but that's inconvenient and slow.
So, the question. Is there a tool for writing and debugging .htaccess directives? Update: given that questions asking for libraries and similar are frequently closed as out of scope for SO, is there a more general technique for doing this?
You could use our htaccess tester. It allows you to test basic rewrite rules and conditions, we are trying to improve it's functionality over time but it does the job quite well with the current feature set.
unit testing tools won't be of much help here. look for functional testing tools.

asp.net mvc vs php mvc vs just php for cafepress type site [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 7 years ago.
Improve this question
I dont have experience in web programming. I so far I coded in c++ only. If I wanted to build a site similar in functionality to cafepress.com which route would be most suitable for me?
asp.net mvc or php mvc or just php?
Granted I am new at this, still the amount of options is overwhelming to a newbie. And there is no decent guideline as to pick which is more suitable for what kind of projects?
Since I am new at this, I have to learn one of these things. But I don't want to waste my time only to see these things go out of fashion. So, I am looking for these qualities :
must not go out of fashion in a few years. By this I mean, something that is hyped just because its new and has not found a universal acceptance yet
simple, easy to learn and don't over complicate
do not abstract how web works (asp.net webforms....ahem)
can be done by a small group 2-3 guys
I would suggest you to go for Cakephp or codeigniter which are damn good for making large and maintainable sites. PHP is open-source, cross-platform, has good community support to php and above mentioned frameworks, something not there in asp.net. Also in asp.net security holes are found regularly.
I like ASP.Net MVC so i would recommend that because C# is awesome and Visual Studio is the best IDE. But you should look at the languages and tools and figure out what suites you.

As a C# developer who wants to do some PHP work, what [book/online articles] should I [buy/read] to introduce myself to PHP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've got the bare minimum to handle the Linux/MySQL parts of the stack, but I want to have a basic grasp of PHP before I dive in. I'll be working on WordPress plugins, in case there's anything specifically interesting for that.
PS - any recommendations regarding recommended source control/IDEs would also be great, but I guess that's a separate question.
I would recomment the PHP manual too!
For PHP books you can check this question, personally I like Programming PHP, IDEs, I can recommend you to try:
Eclipse PDT
Zend Studio for Eclipse
NetBeans for PHP
DevPHP
Vim
Vim actually it's not an IDE, but you can get omnicompletion, syntax coloring, debugging, and so on...
The PHP Manual it's also a really good place to start learning the language.
When you're developing C# you should definitely take a look at VS.Php
The best php/mysql book is probably PHP and MySQL web development but if you already have an experience in web development you might just need something like the PHP cookbook.
Also, if you don't have any experience with share hosting, you should read something like Apache security (chapter 6).

Categories