A parser is a script that is launched by the server using CRON according to a schedule and makes some third-party requests, for example, to the API using CURL. It means in which folder to put it would be architecturally correct? View such things do not probably need. Do I need to use the model and controller? (after all there can be work from a DB)

  • put in the cron folder :) - Alexey Shimansky
  • @ Alexey Shimansky, well, in the default project structure there is no such folder as far as I remember))) - user258184
  • yes, so create and put everything you need. because there is also a migration folder in the root, there are componets , there can be messages and tests . cron is no worse. - Alexey Shimansky
  • @ Alexey Shimansky, cron folder, but then in files from it you can write queries directly to the database without using the ORM framework. In fact, it will turn out to be an ordinary separate script that is not related to the framework at all - user258184
  • Why is this? Seen in the web folder there is an index.php in which the framework is connected? No one bothers to make the connection the same way in the cron folder. For example, take a look at the yii file without the extension at the root of the project. it also has all these connections, so that you can run it from the batch file or run various commands from a console such as init, migrate, or something else there - Alex Shimansky

0