Simple php scripts - whether to use framework
Greetings to readers of the blog Help.
Help me choose a framework for php, and decide if it is needed at all.
Although I have been programming for a long time, I am not a web programmer in any way.
I sometimes write scripts in php - but not so much for the web as simple console utilities - when you need to process some texts, or automate sending http requests, or when you need to solve any problems on the server so that it can be rotated around the clock.
Actually, I rather do not know php than I know, I write simply in the forehead. As the term was recently used here, I know a language with a dictionary (read from php.net).
Now I have a need to solve the following problem.
Get text data on http requests, parse them - pull out certain parameters, save data (to the database, or just to the file system) and display beautiful labels for this data. Then periodically update the data, save the dynamics of parameter changes and display graphs of the changes.
Since this time several people will use these scripts, my usual way is to display all the data in csv and then view it in excel is no longer convenient.
It occurred to me that perhaps if I am now writing the output of tables (with the ability to sort the data in them by columns and so on, etc.), multi-threaded http requests with a data pool and an answer pool, graph output, etc., then I will probably reinvent the wheel.
Perhaps if you search, you can find ready-made separate classes for each task.
But maybe I'm missing it. Maybe you just need to use one framework that makes it easier to solve such problems?
The type of task, I repeat, is simple - get the text data for the set of http requests, parse them and output them beautifully.
For example, I want a simple one for tables - I give the array an output, and in response I get html code that beautifully displays this table, sorts the data without reloading the page, etc.?
It's just that for me the difficulty of writing php code and html code is quite comparable. :) php is even easier.
What can you advise?
And how on a single framework, or on separate pieces that can be combined once and all the time to use?
Thanks in advance for your advice.
Help me choose a framework for php, and decide if it is needed at all.
Although I have been programming for a long time, I am not a web programmer in any way.
I sometimes write scripts in php - but not so much for the web as simple console utilities - when you need to process some texts, or automate sending http requests, or when you need to solve any problems on the server so that it can be rotated around the clock.
Actually, I rather do not know php than I know, I write simply in the forehead. As the term was recently used here, I know a language with a dictionary (read from php.net).
Now I have a need to solve the following problem.
Get text data on http requests, parse them - pull out certain parameters, save data (to the database, or just to the file system) and display beautiful labels for this data. Then periodically update the data, save the dynamics of parameter changes and display graphs of the changes.
Since this time several people will use these scripts, my usual way is to display all the data in csv and then view it in excel is no longer convenient.
It occurred to me that perhaps if I am now writing the output of tables (with the ability to sort the data in them by columns and so on, etc.), multi-threaded http requests with a data pool and an answer pool, graph output, etc., then I will probably reinvent the wheel.
Perhaps if you search, you can find ready-made separate classes for each task.
But maybe I'm missing it. Maybe you just need to use one framework that makes it easier to solve such problems?
The type of task, I repeat, is simple - get the text data for the set of http requests, parse them and output them beautifully.
For example, I want a simple one for tables - I give the array an output, and in response I get html code that beautifully displays this table, sorts the data without reloading the page, etc.?
It's just that for me the difficulty of writing php code and html code is quite comparable. :) php is even easier.
What can you advise?
And how on a single framework, or on separate pieces that can be combined once and all the time to use?
Thanks in advance for your advice.