apphp/ai-with-php-examples
Composer 安装命令:
composer create-project apphp/ai-with-php-examples
包简介
Code examples provided for the book Artificial Intelligence with PHP.
README 文档
README
https://apphp.gitbook.io/artificial-intelligence-with-php/
Interact With The Community
⚠️ Disclaimer
The code examples provided for the book Artificial Intelligence with PHP are intended for educational purposes only. These examples are designed to illustrate concepts and techniques in artificial intelligence and machine learning using PHP. They are not suitable for production use and should not be deployed on live servers or systems that handle sensitive data.
The demo code has not been subjected to rigorous security testing and may contain inaccuracies, vulnerabilities, inefficiencies, or other issues that could pose security risks if used in production environments. As such, it may not be 100% accurate or reflect best practices. We strongly advise readers to thoroughly review, test, and secure any implementation of the techniques demonstrated in this book before using them in real-world applications.
The author and publisher are not responsible for any security breaches, data losses, or other damages that may result from using these examples on production servers.
Installation
To install these examples, follow these steps:
- Clone the repository:
git clone git@github.com:apphp/ai-with-php-examples.git
- Navigate to the project directory:
cd ai-with-php-examples
- Run following command. It will prepare and run docker containers with all required applications.
make init
- After installation is complete, type in your browser: http://localhost:8088/
- If everything is OK, you should see the website with examples of code.
Live DEMO
You may find live demo for these examples on official website: https://aiwithphp.org/examples/
Libraries for Backend
- Rubix ML https://rubixml.com
- RubixML/Tensor https://github.com/RubixML/Tensor
- PHP-ML https://php-ml.readthedocs.io/en/latest/
- MathPHP https://github.com/markrogoyski/math-php
- OpenAI PHP Client https://github.com/openai-php/client
- LLM Agents PHP SDK https://github.com/llm-agents-php/agents
Libraries for UI
- Chart.js https://www.chartjs.org/
- Plotly.js https://plotly.com/javascript/
- Mermaid.js https://mermaid.js.org/
- MathJax https://www.mathjax.org/
- Regression-js https://tom-alexander.github.io/regression-js/
- React and ReactDOM https://legacy.reactjs.org/docs/cdn-links.html
- Babel for JSX transformation https://babeljs.io/
- JavaScript syntax highlighter https://highlightjs.org/
The Following Examples are Available:
-
Artificial Intelligence
- Problem Solving
- Uninformed (Blind) Search
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Iterative Deepening Depth-First Search (IDDFS)
- Uniform Cost Search (UCS)
- Bidirectional Search (BDS)
- Depth-Limited Search (DLS)
- Random Walk Search (RWS)
- Informed (Heuristic) Search
- Greedy Search
- A* Tree Search
- A* Graph Search
- Iterative Deepening A*
- Beam Search
- Hill Climbing Search
- Simulated Annealing Search
- Practical Applications
- Traveling Salesman Problem
- Simulated Annealing Process
- Uninformed (Blind) Search
- AI Agents
- LLM Agents
- Site Status Checker Agent
- Sales Analyst Agent
- LLM Agents
- Knowledge & Uncertainty in AI
- Knowledge-Based Agents
- Mathematics for AI
- Logic and Reasoning
- Propositional
- Predicate Logic
- Logic and Reasoning
- Problem Solving
-
Machine Learning
- Mathematics for ML
- Scalar
- Scalar Operations with MathPHP
- Scalar Operations with Pure PHP
- Vector
- Vector Operations with Rubix
- Vector Operations with Rubix/Tensor
- Vector Operations with MathPHP
- Vector Operations with Pure PHP
- Matrices
- Matrix Operations with Rubix
- Matrix Operations with Rubix/Tensor
- Matrix Operations with MathPHP
- Matrix Operations with Pure PHP
- Tensors
- Linear Transformations
- Scale Transformation
- Simple Linear Layer
- Fully Connected Layer
- ReLU Activation
- Eigenvalues and Eigenvectors
- Scalar
- Data Fundamentals
- Big Data Techniques in PHP
- Chunked Processing
- Dataset Generator
- Big Data Techniques in PHP
- Stages of Data Processing
- Data Cleaning
- Data Cleaning
- Data Normalization
- Data Standardization
- Data Transformation
- Encoding Categorical Variables
- Normalizing and Scaling Numerical Features
- Reshaping Data Structures
- Data Cleaning
- ML Algorithms
- Linear Regression
- Simple Linear Regression
- Multiple Linear Regression
- Regularized Linear Regression (Lasso)
- Polynomial Regression
- Linear Regression
- Mathematics for ML
-
Neural Networks
- Types of NN
- Basic Neural Network
- Simple Perceptron
- Basic Neural Network
- Types of NN
apphp/ai-with-php-examples 适用场景与选型建议
apphp/ai-with-php-examples 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 11 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 apphp/ai-with-php-examples 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 apphp/ai-with-php-examples 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-22