📜 ⬆️ ⬇️

Simple php scripts - whether to use the framework

Greetings blog readers Help.

Help pick a framework for php, and decide whether it is needed at all.


')
Though I have been programming for a long time, but I am not a web programmer in any way.
I sometimes write scripts in php - but actually not so much for the web as just console utilities - when you need to process any texts, or automate sending http requests, or when you need to solve any tasks on a server to hang around the clock.

Actually, I rather do not know php than I know, I just write in the forehead. As here recently used the term - I know the 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 the data (to the database, or just to the file system) and display beautiful labels based on this data. Then periodically update the data, save the dynamics of changes in parameters and display graphs on the changes.

Since this time several people will use these scripts, my usual way is to output all data to csv and then to browse in excel is no longer convenient.

I thought that perhaps if I now write the output of the tables (with the ability to sort the data into them by the hundred and so on and so forth), multi-threaded http requests with a data pool and a pool of answers, output of graphs, 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 him. Maybe you just need to use one framework that facilitates the solution of such tasks?

The type of task I repeat is simple - get the text data on the set of http requests, parse them and display them nicely.

For example, for tables, you want a simple one - I give an array to the output, and in response, I generate html code that outputs this table nicely, sorts the data without reloading the page, etc.?

Just for me, the complexity 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 the tips.

Source: https://habr.com/ru/post/66537/


All Articles