{"id":19091889,"url":"https://github.com/sfml/sfml-website","last_synced_at":"2025-07-03T17:11:08.170Z","repository":{"id":21832109,"uuid":"25155133","full_name":"SFML/SFML-Website","owner":"SFML","description":"Repository for the SFML website.","archived":false,"fork":false,"pushed_at":"2025-06-10T06:44:32.000Z","size":35009,"stargazers_count":26,"open_issues_count":27,"forks_count":42,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-01T02:49:01.833Z","etag":null,"topics":["css","hacktoberfest","html","php","sfml","website"],"latest_commit_sha":null,"homepage":"https://www.sfml-dev.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SFML.png","metadata":{"files":{"readme":"README.md","changelog":"changelog-fr.php","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2014-10-13T11:04:34.000Z","updated_at":"2025-06-10T06:44:35.000Z","dependencies_parsed_at":"2025-06-03T11:11:49.501Z","dependency_job_id":null,"html_url":"https://github.com/SFML/SFML-Website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SFML/SFML-Website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SFML%2FSFML-Website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SFML%2FSFML-Website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SFML%2FSFML-Website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SFML%2FSFML-Website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SFML","download_url":"https://codeload.github.com/SFML/SFML-Website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SFML%2FSFML-Website/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263366702,"owners_count":23455798,"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":["css","hacktoberfest","html","php","sfml","website"],"created_at":"2024-11-09T03:17:24.500Z","updated_at":"2025-07-03T17:11:03.152Z","avatar_url":"https://github.com/SFML.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SFML Website\n\nThis repository contains the source code of the [SFML website](https://www.sfml-dev.org).\n\nThe main goal here is to provide a place to easily report or even fix issues with the website.\nFor longer discussions however one should still use the [dedicated sub-forum](https://en.sfml-dev.org/forums/index.php?board=3.0) on the SFML forum.\n\n## Development\n\nThe website is mostly HTML with a bit of PHP sprinkled on top, and styled using LESS.\n\nTo view the website in your browser for development, you can essentially pick any web server, that can call PHP.\n\n### Pre-Requisite\n\n#### Windows\n\nIt's highly recommended to use [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install), as setting up Apache or Nginx is a lot more straight forward on a Linux subsystem.  \nIf you don't want to do this, there are common packages such as [XAMPP](https://www.apachefriends.org/), [WampServer](https://www.wampserver.com/en/), or [AMPPS](https://www.ampps.com/).\n\nAfter WSL2 has been installed and you opened an Linux shell in the Windows Terminal, follow the Linux steps below.\n\n#### macOS\n\nEnsure [`brew`](https://brew.sh/) is installed.\n\n```bash\nbrew install php\n\nbrew install nginx\n# OR\nbrew install httpd\n```\n\n**Additional References:**\n\n-   https://pimylifeup.com/install-nginx-on-macos/\n-   https://pimylifeup.com/install-php-on-macos/\n\n#### Linux\n\nOn Linux, we'll provide commands for Debian/Ubuntu-like package managers. If you use a different distro, you'll have to look up the equivalent commands.\n\n```bash\nsudo apt install php8.1-fpm\n\nsudo apt install nginx\n# OR\nsudo apt install apache2\n```\n\nIn case `php8.1-fpm` doesn't exist, add the PPA:\n\n```bash\nsudo apt install software-properties-common\nsudo add-apt-repository ppa:ondrej/php\nsudo apt update\n```\n\n### Configurations\n\n**General Notes:**\n\n-   In case port `80` is already in use, change the port to something else. If you for example pick `1337`, the website will then be accessible at `http://sfml.localhost:1337`\n-   On Windows, `*.localhost` DNS are automatically mapped to `127.0.0.1`. If you want to use another custom domain, make sure to put a resolving DNS entry in your `hosts` file.\n-   On Windows with WSL2, you can use `/mnt/c/...` to access the `C:\\` drive.\n\n#### Nginx\n\n-   On Linux:\n    -   Create a new config file at `/etc/nginx/sites-available`\n    -   Create a link to the `sites-enabled` directory, to enable the new config: `sudo ln -s /etc/nginx/sites-available/sfml /etc/nginx/sites-enabled/sfml`\n    -   Test the Nginx config: `sudo /sbin/nginx -t`\n    -   Reload the config: `sudo service nginx reload` or `sudo systemctl reload nginx`\n-   On macOS:\n    -   Start Nginx: `brew services start nginx`\n    -   Start php as service for Nginx: `brew services start php`\n    -   Edit: `/usr/local/etc/nginx/nginx.conf` or `/opt/homebrew/etc/nginx/nginx.conf`\n    -   Test the Nginx config: `nginx -t`\n    -   Reload the config: `brew services reload nginx`\n\n```nginx\nserver {\n        listen 80;\n        listen [::]:80;\n\n        server_name sfml.localhost;\n        root /path/to/the/cloned/SFML-website/repository;\n\n        index index.php index.html;\n\n        location / {\n                try_files $uri $uri/ /index.php$is_args$args;\n        }\n\n        location ~* \\.php$ {\n                try_files $uri =404;\n                fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n\n                # Uncomment for Linux\n                #fastcgi_pass unix:/run/php/php8.1-fpm.sock;\n\n                # Uncomment for macOS\n                #fastcgi_pass 127.0.0.1:9000;\n\n                fastcgi_index index.php;\n                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n                include fastcgi_params;\n        }\n}\n```\n\n#### Apache\n\n-   On Linux:\n    -   Create a new config file at `/etc/apache2/sites-available`\n    -   Create a link to the `sites-enabled` directory, to enable the new config: `sudo ln -s /etc/apache2/sites-available/sfml /etc/apache2/sites-enabled/sfml`\n    -   Test the Nginx config: `sudo /sbin/apache2 -t`\n    -   Reload the config: `sudo service apache2 reload` or `sudo systemctl reload apache2`\n-   On macOS:\n    -   Edit: `/usr/local/etc/httpd/httpd.conf` or `/opt/homebrew/etc/httpd/httpd.conf`\n    -   Reload the config: `brew services reload httpd`\n\n```apache\n\u003cVirtualHost *:80\u003e\n        ServerName sfml.localhost\n\n        DocumentRoot /path/to/the/cloned/SFML-website/repository\n        DirectoryIndex index.php index.html\n\u003c/VirtualHost\u003e\n```\n\n## License\n\nSee the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfml%2Fsfml-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfml%2Fsfml-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfml%2Fsfml-website/lists"}