How do I get started with Azure for integrating AI into my Angular and PHP application?

Gedeon Oscar 0 Reputation points
2025-02-21T11:26:47.72+00:00

Hi there, my name is Gedeon Oscar, and I am a junior developer new to the Azure ecosystem. I work for a company that develops management, reporting, and data visualization web applications for shooting ranges. Our tech stack includes AngularJS for the frontend and PHP for the backend.

I want to integrate AI capabilities into our application using Azure, but I am unsure where to begin. Could someone guide me on the best starting point? Specifically:

  • What Azure services should I explore for AI integration?
  • How do I connect these services to an AngularJS frontend and a PHP backend?
  • Are there any tutorials, documentation, or best practices I should follow?

Any detailed steps, resources, or guidance would be greatly appreciated. Thank you!

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,746 questions
{count} votes

Accepted answer
  1. Alex Burlachenko 1,745 Reputation points
    2025-02-21T12:39:12.77+00:00

    Oi Gedeon, my friend!!

    So you’re divin into Azure to spice up your AngularJS and PHP app wiv some AI magic, yeah you’re a junior dev sortin out management and data viz apps for shootin ranges proper cool gig that. Let’s get you rollin like we’re natterin over a pint at the local, no messin about! Azure’s like a massive toolbox for AI it’s got all the gear to make your app sharper than a geezer on quiz night. Whether you wanna crunch shootin stats, spot bullet holes in pics or have chatbot cheer on your shooters, it’s all there. With AngularJS up front and PHP holdin the fort, we’ll keep it dead simple to slot in. For starters, check out Azure AI Services it’s your go-to mate for ready-made tricks. Fancy spottin holes in targets? Azure AI Vision’ll sort you out. Need pull numbers from reports? Language service got your back. If you’re feelin flash, Azure OpenAI’s like havin ChatGPT in your pocket imagine a bot goin, “Nice shot, bruv, but nudge it left a bit!” For somethin custom like predictin scores, Azure Machine Learning’s the one, but it’s bit hefty for a first go. And Azure Functions? Handy little serverless bits to tie it all to your PHP wivout breakin a sweat.

    Hookin it up’s a doddle. On the PHP side, you’ll chat to Azure wiv REST APIs they give you a endpoint and a key, and you just ping it wiv cURL or Guzzle. Say you wanna count holes: upload pic from PHP, sling it to Azure AI Vision, and grab results. Piece of piss! Then AngularJS call your PHP wiv a quick $http hit, get the JSON back, and you splash it on your dashboards. Job done! In PHP, smack this together to send target pic to Azure you’ll need your endpoint and key, shove image in wiv cURL, and it’ll spit out JSON wiv the goods. In AngularJS, just fire a $http.get('/api/analyze-target'), snag data, and log somethin like 'Blimey, X holes, you’re a legend!'. To kick off, nip over to azure.microsoft.com and nab free trial 200 quid’s worth of credits to play wiv. In portal, search up 'Azure AI Services' or 'Azure OpenAI', set it up, and grab your endpoint and key. Test it wiv cheeky PHP script first – if it work, you’re golden. Then rig up PHP route like /api/ai to call Azure, hook button in AngularJS to trigger it, and show off results. Once it’s hummin, chuck it live and watch magic happen. For extra juice, hit up Azure docs at docs.microsoft.com/azure/ai-services dry as stale sarnie but packed wiv info. YouTube’s got loads of “Azure AI PHP” vids to watch wiv a brew, and Azure’s GitHub’s got samples you can nick and tweak. Start small, like spottin holes wiv Vision, then go big once you’re comfy.

    Cheers,


1 additional answer

Sort by: Most helpful
  1. Manas Mohanty 1,125 Reputation points Microsoft External Staff
    2025-02-25T12:00:55.72+00:00

    Hi Gedeon Oscar

    You can start getting familiarity with basic concepts like prompt, token, TPM, rate limits etc.

    from OpenAI and Azure OpenAI documentation.

    Attached for Java SDK links for Azure OpenAI, you can refer the same source for links to other Azure AI resources.

    As Alex Burlachenko mentioned, you can configure PhP script to receive the results procured for rest Api or Java script calls and display them on webpage.

    Found a reference usage externally

    You can check here on Forum on OpenAI issues and on respective PHP communities for PHP issues.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.