Home » Php » Which php framework is good for shared hosting?

Which php framework is good for shared hosting?

Posted by: admin July 12, 2020 Leave a comment


I’m trying to use a PHP framework, but I don’t have confidence with Composer and terminal commands. I would like to download a framework and upload it on my shared hosting and start to develop my application.
Any suggestion?


How to&Answers:

CodeIgniter https://codeigniter.com is a powerful PHP framework with a very small footprint

1.Unzip the package.

2.Upload the CodeIgniter folders and files to your server. Normally the index.php file will be at your root.

3.Open the application/config/config.php file with a text editor and set your base URL. If you intend to use encryption or sessions, set your encryption key.

4.If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings.

If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders to something more private. If you do rename them, you must open your main index.php file and set the $system_path and $application_folder variables at the top of the file with the new name you’ve chosen.

For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn’t abide by the .htaccess.

If you would like to keep your views public it is also possible to move the views folder out of your application folder.

After moving them, open your main index.php file and set the $system_path, $application_folder and $view_folder variables, preferably with a full path, e.g. ‘/www/MyUser/system’.

One additional measure to take in production environments is to disable PHP error reporting and any other development-only functionality. In CodeIgniter, this can be done by setting the ENVIRONMENT constant, which is more fully described on the security page.

That’s it!

you’ve got yourself a powerful MVC framework wherever you go. it is also very popular.


As posted above (or below?), I’d highly suggest Laravel. It currently is the most powerful, complete and versatile framework. Requires less code than most framework to achieve something.

You don’t really have to know composer, since the commands to install the packages are given to you in a copy-paste version. All packages installation methods are neatly documented for each package.

You will need to tweak the “public” directory so it points instead to the public_html folder via a symlink.

A simple symlink will do. Add this to the .htaccess:

Options +FollowSymLinks

If you don’t have cPanel shell access simply use the cron function to make the symlink for you.


You can pretty much use almost all the frameworks including Symfony2, Laravel, Codeigniter or CakePHP and etc. However if you have never used a framework I’d suggest you to use Laravel. Because Laravel has a great community as well as with laracasts.com(which has great screencasts about PHP, Laravel and even JS).

If you have an experience with a framework, then I’d suggest you to try out Symfony2. It is one of the best frameworks for PHP. Also Symfony is becoming the industry standard. There are many great projects that are built top of Symfony components including;

  • Drupal
  • Laravel(yes laravel uses some of Symfony’s components)
  • Joomla
  • Magento
  • Codeception and etc.

Many high profile companies are looking for Symfony developers. So there are many great opportunities at great companies if you are a Symfony developer.