{"id":23427248,"url":"https://github.com/arrayiterator/content-provider-response","last_synced_at":"2025-09-09T11:21:30.266Z","repository":{"id":63608380,"uuid":"569157147","full_name":"ArrayIterator/content-provider-response","owner":"ArrayIterator","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T08:31:57.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T06:30:38.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArrayIterator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-22T07:54:49.000Z","updated_at":"2022-12-15T01:14:12.000Z","dependencies_parsed_at":"2023-01-26T04:46:59.593Z","dependency_job_id":null,"html_url":"https://github.com/ArrayIterator/content-provider-response","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrayIterator%2Fcontent-provider-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrayIterator%2Fcontent-provider-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrayIterator%2Fcontent-provider-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrayIterator%2Fcontent-provider-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArrayIterator","download_url":"https://codeload.github.com/ArrayIterator/content-provider-response/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248037687,"owners_count":21037392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-23T06:17:48.449Z","updated_at":"2025-04-09T12:24:16.977Z","avatar_url":"https://github.com/ArrayIterator.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CONTENT PROVIDER EXAMPLE\n\n\u003e ERROR KEY ON: `code`\n\n- **EMPTY_CHANNEL_ID**: Channel ID Is Empty\n- **EMPTY_CP_CHANNEL_ID**: Content Provider Channel ID Is Empty\n- **INVALID_CHANNEL_ID**: Channel ID Is Invalid (nor integer)\n- **INVALID_CP_CHANNEL_ID**: Content Provider  Channel ID Is Invalid (nor integer)\n- **EMPTY_SUBSCRIPTION_PRICE**: Subscription Price Has empty\n- **EMPTY_SUBSCRIPTION_PERIOD**: Subscription Period Has empty\n- **EMPTY_SUBSCRIPTION_FREQUENCY**: Subscription Frequency Has empty\n- **EMPTY_CREATOR_NAME**: Creator Name Has empty\n- **EMPTY_STATUS**: Status Has empty\n- **EMPTY_SLUG**: Slug Has empty\n- **INVALID_CHANNEL_ID**: Channel ID is Invalid (nor integer)\n- **INVALID_SUBSCRIPTION_PERIOD**: Subscription Period Invalid (nor integer)\n- **INVALID_SUBSCRIPTION_FREQUENCY**: Subscription Frequency Invalid (nor integer)\n- **INVALID_SUBSCRIPTION_PRICE**: Subscription Price Invalid (nor integer)\n- **NOTFOUND_CHANNEL_ID**: Channel ID Not Found\n- **MISMATCH_CHANNEL_ID**: Channel ID \u0026 Content Provider ID Mismatch (from CP Database)\n- **EMPTY_ATTACHMENT**: Required Attachments Has empty (Both File \u0026 Cover image has empty)\n- **EMPTY_CONTENT_ID**: Content ID Has Empty\n- **NOTFOUND_CONTENT_ID**: Content ID Has Not Found\n\n## NGINX ADD BASE PATH\n\n```apacheconf\nserver {\n    # block server ....\n    listen 80;\n    listen 443 ssl http2;\n    error_log /path/to/error.log;\n    # or use : access_log off;\n    access_log /path/to/access/access.log main;\n    # disable log not found\n    log_notfound off;\n\n    ssl_certificate /path/to/fullchain.pem;\n    ssl_certificate_key /path/to/privkey.pem;\n\n    location @proxy {\n        # the proxy\n        proxy_pass http://127.0.0.1:3000;\n    }\n\n    # .....\n    # start here, insert before location /\n    location ~ /content-provider(/|/?$) {\n        # add CORS\n        add_header Access-Control-Allow-Origin *;\n\n        root /path/to/app/public;\n        index index.php;\n\n        # this for basepath\n        fastcgi_param base_path /content-provider;\n\n        # php listener\n        fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n        include fastcgi_params;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        fastcgi_param SCRIPT_NAME $fastcgi_script_name;\n        fastcgi_index index.php;\n\n        fastcgi_intercept_errors off;\n        fastcgi_buffers 16 16k;\n        fastcgi_buffer_size 32k;\n        fastcgi_pass unix:/var/run/php/pool.sock;\n        try_files /index.php$is_args$args =404;\n        # or use\n        # try_files /index.php$is_args$args @proxy;\n\n    }\n\n    location / {\n        try_files @proxy =404;\n    }\n}\n```\n\n## NOTE\n\n[Arrayiterator\\AggregatorCpSdk\\Endpoints\\Thumbnail](app/Endpoints/Thumbnails.php) only for example image thumbnail generation endpoints.\n\nYou could ignore this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrayiterator%2Fcontent-provider-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farrayiterator%2Fcontent-provider-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrayiterator%2Fcontent-provider-response/lists"}