{"id":21845724,"url":"https://github.com/pedra/affiliate_new","last_synced_at":"2026-01-11T13:02:15.696Z","repository":{"id":247002164,"uuid":"824797989","full_name":"pedra/affiliate_new","owner":"pedra","description":"Astro \u0026 PHP application.","archived":false,"fork":false,"pushed_at":"2024-08-07T14:32:56.000Z","size":5152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T10:39:01.300Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-06T01:32:04.000Z","updated_at":"2024-08-07T14:33:00.000Z","dependencies_parsed_at":"2024-07-28T01:30:31.292Z","dependency_job_id":"ad8a4616-75b8-41f8-b524-c3690b851742","html_url":"https://github.com/pedra/affiliate_new","commit_stats":null,"previous_names":["pedra/affiliate_new"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedra/affiliate_new","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedra%2Faffiliate_new","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedra%2Faffiliate_new/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedra%2Faffiliate_new/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedra%2Faffiliate_new/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedra","download_url":"https://codeload.github.com/pedra/affiliate_new/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedra%2Faffiliate_new/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28304263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-27T23:11:09.866Z","updated_at":"2026-01-11T13:02:15.681Z","avatar_url":"https://github.com/pedra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" src=\"https://billrocha.netlify.app/Handmade.png\" alt=\"Hand Made\"\u003e\n\n# Astro \u0026 PHP Application\n\u003c\u003c [affiliate.freedomee.com](https://affiliate.freedomee.com) \u003e\u003e\n\nTo start local development, open a terminal and type the following (one command at a time):\n\n```sh\ngit clone https://github.com/pedra/affiliate_new.git\ncd affiliate_new\nnpm install\nnpm run dev\n```\n\nOpen another terminal and type:\n\n```sh\nnpm run php\n```\n\nNow you have two servers running. One managed by Astro at ```localhost:4321/``` and the other by PHP (which must be installed on your local machine) at ```localhost/```, where it will carry out final tests before deploying to the production server.\n\n### 🚀 Project Structure\n\nInside of your Astro project, you'll see the following folders and files:\n\n```text\n/\n├── server/\n│   └── public/\n│   └── php/\n│       └── lib/\n│       └── module/\n│       └── template/\n│       └── .env\n│       └── router.php\n│       └──start.php\n├── public/\n│   └── .htaccess\n│   └── index.php\n│   └── \u003c static files: css|js|img|etc... \u003e\n├── src/\n│   ├── components/\n│   │   └── Card.astro\n│   ├── layouts/\n│   │   └── Layout.astro\n│   └── pages/\n│       └── index.astro\n└── package.json\n└── astro.config.mjs\n└── postbuild.mjs\n```\n\nAstro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.\n\nThere's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.\n\nAny static assets, like images, can be placed in the `public/` directory.\n\nThe ```server/php/``` directory is where the PHP server is written.\n\nAstro's build targets the ```server/public/``` path used by the PHP server as a repository for static files. \n\nThe post-build script (```/postbuild.mjs```) locates the pages that have already been processed, replaces the ```[[name]]``` syntax with something like ```\u003c?=$name?\u003e``` for PHP access (\"name\" is any applicable variable name). The pages are moved to the ```/server/template/page/\u003cpage_name\u003e.php``` path, for the server-side PHP domain.\n\nDeployment is done by uploading the contents of the ```server/``` folder, after processing, to a server with PHP, Apache2, and MySQL installed. The ```server/public/``` folder is exposed for public access. Everything else is behind it (protected).\n\n### 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:4321`      |\n| `npm run build`           | Build your production site to `./app/public/`    |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n| `npm run php` \t\t\t      | Start local PHP server at `localhost`            |\n\n### 👀 Want to learn more?\n\nFeel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).\n\n---\n\n## ☕ Buy me a coffee ?!\n**Bill Rocha** | [billrocha.netlify.app](https://billrocha.netlify.app) | prbr@ymail.com\n\n_This software was written by human hands.._ \u003cimg align=\"left\" src=\"https://billrocha.netlify.app/handmade_32.png\" alt=\"Hand Made\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedra%2Faffiliate_new","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedra%2Faffiliate_new","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedra%2Faffiliate_new/lists"}