I want to incorporate my magento store products, in my cakephp site. Is this possible? Also is this a secure way? I don't want to risk the security of the site too.
In summary using the magento API
I recommend you take a look at something like this
But the idea is you are connecting to magento store from cakephp site through magento API and showing product search results.
Follow these steps: https://sarasotawebpros.com/is-it-possible-to-integrate-cakephp-and-magento/
It is explained very well in anove resource hor to integrate magento with cakephp.
yes , it is possible to do so , you can use magento rest api's for it , here is the reference to the api from the magento 2 documentation List of REST endpoints
To incorporate it in your cakephp 3 , you can use curl to manage the api requests here is reference for that from the magento 2 documentation Use cURL to run the request
you can use postman for testing your the api endpoints and can generate the php curl code from it .
To get a product information for a product with the sku Reebok-01 you would hit the request something like this
Actually you have to do a lot more for it , you also have to authenticate yourself for auth 2.0
Hope the links provided will be helpful for you to get started . If you get stuck message me , i will help :)