The Good Tech Companies - This Open Source Framework Brings Full Featured AI Agents Into Your PHP Application

Episode Date: March 7, 2025

This story was originally published on HackerNoon at: https://hackernoon.com/this-open-source-framework-brings-full-featured-ai-agents-into-your-php-application. It take...s just a few lines of code with Neuron to implement your first full featured agent. Check more stories related to machine-learning at: https://hackernoon.com/c/machine-learning. You can also check exclusive content about #ai, #php, #ai-agent, #ai-agent-in-php, #ai-agentic-framework-php, #neuron-ai, #ai-agentic-framework, #good-company, and more. This story was written by: @valerio. Learn more about this writer by checking @valerio's about page, and for more stories, please visit hackernoon.com. If your customers are pushing you to implement AI features into your application, try Neuron, it takes just a few lines of code to implement your first full featured agent.

Transcript
Discussion (0)
Starting point is 00:00:00 This audio is presented by Hacker Noon, where anyone can learn anything about any technology. This open-source framework brings full-featured AI agents into your PHP application, by Inspector Dev. In the last few months I heavily worked to push the AI agents integration into my SaaS product to a higher level. It was a very long journey, started more than a year ago with the first experiments. I had to say that understanding all the moving parts of an AI driven system was far from easy. As a PHP developer I struggled a lot, mainly because the PHP ecosystem to develop this kind of, agentic, features into existing applications it's not as advanced and rich as it is in other technologies. Python and JavaScript are, driving the bus, and obviously other developers working with different programming languages are creating their artifacts to get the opportunity to start their journey too.
Starting point is 00:00:50 Six months ago when I started working on this chapter I took in consideration some packages that were getting attention like LLFant or Prism. There was a lot of development behind these packages and they have already implemented a lot of things. But for my needs they have two serious weaknesses to consider building the foundation of this chapter for my business on these libraries. Prism is exclusively for Laravel, so you are locked in, and LLFant has a lot of different classes and looks more like a library than a framework. It also lacks features like memory, chat history, observability, the unsustainable path, from the beginning I realized that I could not look at other programming languages. It is not sustainable, and I am sure
Starting point is 00:01:30 that is the same for most developers who specialize in a particular technology. If you have a PHP application you can't implement an agent in JavaScript or Python, because they need your application data and context to generate their magic. Transferring this data and context to an external entity written in another language leads to a lot of code duplication, or technical constraint that is not sustainable too. I'm curious to see if it was just me struggling, or if these feelings are the same as other PHP developers. I started thinking that the tool I created for myself was really really good, at least in my perspective.
Starting point is 00:02:09 So I decided to release this internal tool as an open source project. Neuron AI, open source framework to integrate full featured AI agents into your existing PHP application. https://neuron.inspector.dev why I decided to make it open source. The journey I would like to explore is inspired by Langchain, giving people the power to create agentic entities into PHP applications with a complete open source toolkit. And provide support and long-term visibility thanks to the professional monitoring and debugging service powered by Inspector. Dev, at the same time I believe it can really help PHP developers jump into the AIBUs with stronger foundations.
Starting point is 00:02:46 It seemed to me a clear opportunity. I hope it can get you the answers you are looking for to continue to build great software with your preferred programming language. Here's a how the system is organized, key concepts. Neuron AI is designed to provide you with a complete toolkit to implement AI-driven applications, making it easy to integrate into your existing system. Most Neuron AI framework components do not implement active constructors, they just provide you features to implement your own agentic behavior. The two most important classes, Agent and Rag, are designed to be extended to create your specific implementation. They are rarely used as standalone objects. This ensures the portability of your agent implementation because all the moving parts are encapsulated into a single entity
Starting point is 00:03:29 that you can just run wherever you want in your application. Talk to the agent package dependencies. We intentionally decided to build Neuron as free as possible from external dependencies. The package ships with just one dependency. GuzzleHenttp, guzzle, caret7. 0 inches without bringing dozens of dependencies inside your application, you do not risk being locked out of neuron if you need to upgrade your current architecture, like the web application framework, Laravel, symphony, code igniter, etc. to a newer version, or integrate new dependencies.
Starting point is 00:04:03 Based on our experience, a bad dependency chain could be a very unpleasant surprise when it is too late. You have already spent a lot of effort to implement your AI interactions, and suddenly it has become a bottleneck because the dependencies make it impossible to upgrade and evolve the rest of your system. We want you to know that with Neuron AI, it's not the case. Extensibility. Every component of the framework
Starting point is 00:04:25 depends on its own interface. This guarantees you the ability to create new concrete implementations of every component to interact with external systems and pass them to your agents with confidence. In the components documentation you will find the dedicated section of how to implement a new one, basically extending its interface. Do you want to implement a new vector store, or an embeddings provider? Follow the documentation and feel free to send us a PR with your new module. We will be happy to integrate them as a part of the framework to ensure first-party support and maintenance. AI agents observability. Neuron is designed with a built-in system to make your agent and RAG implementations observable. You can start monitoring your agent's activities and performance with just one line of code.
Starting point is 00:05:09 Take a look at the dedicated section in the observability section. Neuron AI Toolkit To create a fully functional AI agent you have to make several things work together. Apart from the LLM, you need to constantly process data, create and store embeddings to feed your agent with fresh information. The project aims to provide easy to implement and extend solutions into all of these areas. What's next after the launch?
Starting point is 00:05:33 At Inspector we embrace organic growth, so we would like to start helping developers create their first agents to discover edge cases, new needs, and a biasly bug fix. We are already at work with our internal user base of plus 10,000 Philippine pesos developers that are starting their agents right now and a lot of exciting things are emerging yet. Real use cases will be the driver of the framework evolution, so don't hesitate to contact us if you want to grab some knowledge from our experience. We are here to help. Conclusion If your customers are pushing you to implement AI features into your application, try Neuron.
Starting point is 00:06:08 It takes just a few lines of code to implement your first full featured agent. Thank you for reading this article. I invite you to contact me for any questions, curiosities, or just to give me your feedback. And if you think this tool could be useful to others PHP developers, please share it on your blog, social media and YouTube channels. Learn more about Inspector on the website, https://inspector.dev best. Valerio, thank you for listening to this Hacker Noon story, read by Artificial Intelligence. Visit HackerNoon.com to read, write, learn and publish.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.