rmatil / angular-cms
此包已被 废弃,不再维护。未建议替代包。
v0.2
2016-05-28 16:15 UTC
Requires
- ckeditor/ckeditor: 4.*
- doctrine/orm: 2.4.6
- ircmaxell/password-compat: ^1.0
- jms/serializer: ~0.16
- mandrill/mandrill: ^1.0
- palanik/corsslim: ^0.0.5
- phpmailer/phpmailer: ~5.2
- slim/slim: 2.4.3
- slim/views: ^0.1.3
- slimcontroller/slimcontroller: ~0.4
- swiftmailer/swiftmailer: ~5.4
- symfony/yaml: 2.5.6
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/dbunit: ^1.4
- phpunit/phpunit: 4.1.*
This package is auto-updated.
Last update: 2023-09-22 05:03:07 UTC
README
Angular CMS 是一个 Symfony 3.2 应用程序,需要 PHP 7.1。
安装
依赖项
- 克隆仓库:
git clone git@github.com:rmatil/angular-cms.git cd angular-cms- 运行
composer install以安装依赖项
设置
与许多其他 Symfony 项目一样,您必须首先设置应用程序,然后才能直接使用捆绑包。幸运的是,此项目包含对应捆绑包的所有必要配置,特别是 AngularCmsBundle。
但是,您可能需要执行以下步骤以获取调整内容的 API 访问权限
- 在
app/config/parameters.yml中配置数据库凭据,或在相应的.dist文件中。 - 然后,运行
php app/console fos:user:create并按照步骤操作。 - 要访问 API,您的用户需要管理员权限:
php app/console fos:user:promote并在提示时使用角色ROLE_SUPER_ADMIN。
文件上传
上传文件时,您可能需要调整 PHP 安装的一些设置
- 打开正确的
php.ini:sudo vim /etc/php/7.1/fpm/php.ini - 检查
file_uploads。应该是On - 检查
post_max_size。 - 检查
upload_max_filesize。应该与post_max_size具有相同的大小 - 重新启动 apache
- 确保上传文件夹具有写权限:
chmod +x web/uploads - 确保文件上传工作正常。如果不正常,请检查 http://stackoverflow.com/questions/3586919/why-would-files-be-empty-when-uploading-files-to-php
API
----------------------------------- ---------- -------- ------ -----------------------------------
Name Method Scheme Host Path
------------------------------------ ---------- -------- ------ -----------------------------------
rmatil_cms_get_article_categories GET ANY ANY /api/v1/article-categories
rmatil_cms_get_article_category GET ANY ANY /api/v1/article-categories/{id}
rmatil_cms_update_article_category PUT ANY ANY /api/v1/article-categories/{id}
rmatil_cms_insert_article_category POST ANY ANY /api/v1/article-categories
rmatil_cms_delete_article_category DELETE ANY ANY /api/v1/article-categories/{id}
rmatil_cms_get_articles GET ANY ANY /api/v1/articles
rmatil_cms_get_article GET ANY ANY /api/v1/articles/{id}
rmatil_cms_update_article PUT ANY ANY /api/v1/articles/{id}
rmatil_cms_insert_article POST ANY ANY /api/v1/articles
rmatil_cms_get_events GET ANY ANY /api/v1/events
rmatil_cms_get_event GET ANY ANY /api/v1/events/{id}
rmatil_cms_update_event PUT ANY ANY /api/v1/events/{id}
rmatil_cms_insert_events POST ANY ANY /api/v1/events
rmatil_cms_delete_event DELETE ANY ANY /api/v1/events/{id}
rmatil_cms_get_files GET ANY ANY /api/v1/files
rmatil_cms_get_file GET ANY ANY /api/v1/files/{id}
rmatil_cms_insert_file POST ANY ANY /api/v1/files
rmatil_cms_delete_file DELETE ANY ANY /api/v1/files/{id}
rmatil_cms_get_locations GET ANY ANY /api/v1/locations
rmatil_cms_get_location GET ANY ANY /api/v1/locations/{id}
rmatil_cms_update_location PUT ANY ANY /api/v1/locations/{id}
rmatil_cms_insert_location POST ANY ANY /api/v1/locations
rmatil_cms_delete_location DELETE ANY ANY /api/v1/locations/{id}
rmatil_cms_get_media_tags GET ANY ANY /api/v1/media-tags
rmatil_cms_get_media_tag GET ANY ANY /api/v1/media-tags/{id}
rmatil_cms_update_media_tag PUT ANY ANY /api/v1/media-tags/{id}
rmatil_cms_insert_media_tag POST ANY ANY /api/v1/media-tags
rmatil_cms_delete_article DELETE ANY ANY /api/v1/articles/{id}
rmatil_cms_get_pages GET ANY ANY /api/v1/pages
rmatil_cms_get_page GET ANY ANY /api/v1/pages/{id}
rmatil_cms_update_page PUT ANY ANY /api/v1/pages/{id}
rmatil_cms_insert_page POST ANY ANY /api/v1/pages
rmatil_cms_delete_page DELETE ANY ANY /api/v1/pages/{id}
浏览器访问
如果您配置了 /etc/hosts 文件,使其将请求重定向到您的 web 服务器上的 dev.cmsv5.rmatil.vagrant,则应用程序将自动在 dev 环境中运行。您可以在 web/.htaccess 中将主机名调整为任意值。
许可证
MIT License
Copyright (c) 2018 rmatil
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.