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 6 years ago.
Improve this question
I have started a project to convert some parts of laravel framework to compiled php extensions to improve the performance. I have created a git repository for the migrated parts and another for the laravel modification that will use that extension.
My question is how to build completly all laravel from framework kernel modified?
Do you think that I'm doing well?
I have started a project to convert some parts of laravel framework to
compiled php extensions to improve the performance
...
My question is how to build completly all laravel from framework kernel modified?
Just don't. Laravel is a framework that is changing quite frequently and your attempts to make it working as native code will fail, because every composer update command call will force you to rebuild native implementation.
If you want to put heavy effort for performance optimisation, then go for other frameworks as Falcon, or use Lumen as an alternative (it's lightweight version of Laravel). That's all I can tell about Laravel itself, because optimisation have not only place in Laravel kernel, but also in database design, scale of the project, and other network configuration settings.
Provide more specific information about bottlenecks in your project, and you will get answers that you are looking for.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
within a PHP project, what would be the recommended way of creating configuration files and reading them within the app; configuration files that would be deployed with different content to staging vs. production servers for instance.
I would recommend looking at how the Symfony project injects Parameters for different systems. Symfony's Config Component can be installed as a standalone library and integrated with most projects.
A default parameters.yml.dist is distributed with the codebase but upon system install customised parameters.yml can either be generated manually on the command line or automatically using a deployment process. This avoids holding sensitive and mutable infrastructure information in your codebase.
Symfony Introduction to Parameters
Symfony Config Parameters Best Practices
Combining this with a docker & vagrant setup will enable configuration options to be mirrored across your environment platforms (production, development, testing). A good tutorial on doing this for PHP frameworks can be found here.
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
So after considering my options, I've opted to go with a database storage system to store applications settings. Given the fact that these settings will ultimately be changed every so often by the user, I decided implementing them into a database versus a config file (e.g. .ini file). What we're thinking of doing is storing these settings in a key/pair manner. The only trouble I'm having is finding an efficient way to access and write settings into the database.
My question is, are there any frameworks that you may use/heard of that helps to deal with this type of scenario? The only thing I've managed to find is endless discussions about the storage methods along with their pros and cons but nothing related to implementation of these methods.
Every framework. But. Why do you even need entire FRAMEWORK to just connect to database? Use native PDO included to every PHP installation. Use SQL libraries or plugins. Or consider using XML/CSV/INI files.
Still wanna frameworks that help with database? Here you go:
Yii
Zend
Symfony
Codeigniter
Laravel
Fat-Free
Kohana
CakePHP
Joomla
etc
"Full" list
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create large and complex reports (with graphs, images, pagination, headers and footers, etc) from my Symfony 2 application.
I've been searching the web, looking for Symfony or PHP complete report generators (like Crystal Reports, Report Builder or JasperReports), but I haven't found anything. The only thing I've found are some libraries to generate PDF's from PHP, and the wkhtml2pdf tool.
Is there any reporting tool for Symfony 2 or, at least, for PHP? Or must I use JasperReports and search or write any plugin to call Jasper from Symfony? I haven't deployment constraints because I have my own VPS (no shared server), so I have root access.
For a "pure" PHP solution, you can use PHPJasperXML, which renders Jasper Reports natively into PHP, so you don't need to setup Java and a bridge for PHP, there are some limitations as this is not an official implementation, but it's pretty useful nonetheless.
By the way, the reports can be created with IReport, and then simply used on PHPJasperXML.
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 am wondering whether I can use PHP frameworks such as Symfony2 or Laravel with a CMS like Joomla. I have worked with PHP, but a beginner of Joomla. I know I can use extensions like Sourcerer. But I would like to use Laravel of Symfony2 instead. For example if I am developing a website where there is a considerable amount of server-side programming and also a lot of web pages to display, could I use Joomla to handle the content management and a PHP framework for the server-side programming?
In brief my question is :
Is there any way to integrate a PHP framework(preferably Laravel or Symfony) into a website built on Joomla! ?
If it is not capable of doing, what are the other options available; or is it not recommended to use PHP frameworks along with Joomla?
It would be possible, to integrate your framework into a CMS - so your managers or reporters or whatever, can change content. But that would be horrible amount of work. Better use Content management systems on their own.
It is possible to use Symfony2 with the CMS RedKite. An "Extension - CMS" for it.
More information under:
http://redkite-labs.com/
It's not possible. Joomla is build with its own framework and API.
As of Laravel you could give https://github.com/FrozenNode/Laravel-Administrator a try. It's a sweet CMS for your own models. I love this, since it's not restricting your coding and you can work with your back-end code.
If you're looking for a more client-friendly solution, http://octobercms.com/ is in the works and should hopefully be released soon.
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 developed in PHP for a long time without a framework, I just use PDO for help me with connection database. But now I decided to learn about Zend Framework to increase my productivity, to avoid repetitious code.
I work with Java WEB too, (Hibernate/JPA + JSF + Spring + Maven) that make my work more easy and organized, and I would like to bring it to PHP too.
So my big doubt is: I should starting with ZendFramework 1 or ZendFramework 2? I saw a lot of companies requiring knowledge about ZendFramework 1.
Zend Framework 1 is a dying product. It is the older Version of the Framework and Version 2 has already being developed with Version 3 being on it's way for later 2014 / early 2015 approximately. The reason for companies still requiring ZF1 knowledge is due to their old codebase.
Many companies are starting to re-write their products using newer frameworks to gain the advantages of the newer ones.
With this in mind: clearly go for ZF2 (or any other new fully OOP/MVC Framework). Once you master it, you'll be able to read ZF1 code just as well and you can easily adapt into any other Framework that your company may require.