tonic icon indicating copy to clipboard operation
tonic copied to clipboard

RESTful PHP library/framework

Results 36 tonic issues
Sort by recently updated
recently updated
newest added

The following GET handler works fine on PHP 7, but on PHP 8 produces a fatal Error: ``` /** * @uri /path/to/resource/{whatever} */ class MyResource extends Resource { public function...

If your identifier has a slash it won't work as tonics internal parsing will think it is a valid slash from the path regardless if the / was escaped in...

I have successfully used this framework on several projects. However I am experiencing an issue that is driving me crazy. I do the following: Lets say I have a PHP...

Hello community, I need to do something very specific and I just didn't found out a solution to this. Suppose I have these two classes: ``` php /** * Class...

A simple tip for pepole who dont have dispatch.php on their DocumentRoot.

I just fiddled around with tonic a little, I came up with this solution for a generic OPTIONS request handler that will describe the service: ``` /** * @description Describe...

…losure in Resource::provides sets the content type, it overrides the response content type instead of creating another one with a different case.

Tonic Response defaults to content-type = 'text/html' but $response->contentType = $mimetype; in Tonic Resource declares a new Content-Type header as well instead of overriding the response content-type, you end up...

APC is dead. MetadataCacheAPC.php should be removed. May I suggest you implement a caching mechanism using Memcached instead?

Hi and thanks for your API ! I'm wondering why I can't send DELETE entity body params but only URL params. When trying to do so I get a 415...