Setup RESTful API in Yii2 Advanced Application

While researching for RESTful API implementation in Yii2, I've came across this: Setup RESTful API in Yii2.

It is based on a very old Yii2 beta advanced application, but the knowledge and the techniques are perfectly up to date.
You'll need to understand Routing.

./M6

Linux Self-Extracting Script

While developing a web application - certified for Linux only - I wanted an easy way to deploy it.
The classical RPM (good guide) and DEB (simple guide) packages were an option and, as I write this, the DEB package is actually finished but the RPM is considerable more complex and I'm still not convinced that it is worth the work for what is required, though, it may not be included in the final version.

Since I do not wish to create nor maintain lots of distribution packages, the obvious choice was to have an installation package that could be executed in any Linux distribution.

In the past, around 2003 or so, I've already had a similar problem and the solution back then was to use a self extracting archive. After some research, I found out an easy and simple way to do it.
Here's a detailed explanation on how things can be done: Bash Self-Extracting Script.
If you wish for a faster solution, you can check this Self-extracting Shell Script.

./M6

ASP.Net showing operating system and framework version

Recently I was in the process of migrating a simple ASP.NET MVC application.
After setting up IIS, using Upgrade Assistant and a some code changes, I got this feeling that, somehow, I was being tricked and .Net 4.8 Framework was still there running my code...

So, I got into the layout page and places this on the page footer:

<small>
@System.Runtime.InteropServices.RuntimeInformation.OSDescription
 |
@System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription
</small>

That prints the operating system and the framework where the application is running.


./M6