PHP的任务

时间:2024-03-18 00:14:33
【文件属性】:

文件名称:PHP的任务

文件大小:76KB

文件格式:ZIP

更新时间:2024-03-18 00:14:33

PHP

第一件事 数据库脚本位于config/db.sql 。 使用php -S localhost:8080运行服务器 使用phpunit -c tests/phpunit.xml tests运行phpunit -c tests/phpunit.xml tests 一切都应按预期工作。 使用的技术 我使用了PHP 7.4 , MySQL , PHPUnit , JQuery和Bootstrap 。 我在不使用框架的情况下实现了该项目-PHP的新手,我想用一种艰难的方式来学习它。 做出决定 我为每个数据库实体创建了一个Repository类。 我还添加了Controller类,该类通过存储库检索视图所需的数据。 他们没有处理用户所做的更改,因为我还没有实现路由器。 更改由src/actions的代码处理。 通过将AJAX调用发送到REST API来创建/删除学生。 反射 该解决方案不符


【文件预览】:
php-crud-task-master
----README.md(1KB)
----views()
--------group()
--------student()
--------partials()
--------project()
----new_student.php(309B)
----resources()
--------helpers()
--------js()
----index.php(200B)
----tests()
--------StudentRepositoryTest.php(2KB)
--------students_fixture.xml(409B)
--------phpunit.xml(506B)
--------dbunit.phar(295KB)
--------students_expected.xml(320B)
----composer.lock(66KB)
----composer.json(558B)
----project_view.php(565B)
----src()
--------actions()
--------models()
--------controllers()
----config()
--------conn.php(116B)
--------init.php(93B)
--------Database.php(790B)
--------config.php(279B)
--------db.sql(1KB)
----new_project.php(209B)

网友评论