php-rest-service | fast PHP class for server-side RESTful JSON APIs | REST library
kandi X-RAY | php-rest-service Summary
kandi X-RAY | php-rest-service Summary
Php-Rest-Service is a very simple and fast PHP class for server-side RESTful JSON APIs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the controller
- Get method meta data
- Parse a phpDoc string into an array
- Format a JSON string .
- Describe routes .
- Collect routes
- Setup output formats
- Get request method
- Send response .
- Convert array to xml
php-rest-service Key Features
php-rest-service Examples and Code Snippets
Community Discussions
Trending Discussions on php-rest-service
QUESTION
I've recently wanted to use a library, that is only available in Php (austinb/gameq)
As I really dont know much about Php, to be able to use it with my other webservices (.Net core), I've decided that best way would be to just host it as its own Rest service.
I've tried using marcj/php-rest-service but to no avail, all responses I get are 200(Ok), even when an endpoint is not correct. No errors in both browser and local consoles.
I use php -S localhost:8888 index.php
to start it. Am I missing something?
index.php
...ANSWER
Answered 2020-Jan-20 at 11:17After some research, I found that marcj/php-rest-service is an old repo, with many problems in newer PHP versions.
ElementaryFramework/WaterPipe is a great, still supported and robust framework for your HTTP needs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-rest-service
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page