{"id":17865778,"url":"https://github.com/ttskch/wordpress.skeleton","last_synced_at":"2025-10-06T03:21:13.962Z","repository":{"id":19307007,"uuid":"22544742","full_name":"ttskch/WordPress.Skeleton","owner":"ttskch","description":"Composer based WordPress project skeleton.","archived":false,"fork":false,"pushed_at":"2017-05-22T07:41:03.000Z","size":235,"stargazers_count":46,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-23T18:34:36.815Z","etag":null,"topics":["wordpress","wordpress-packagist","wordpress-skeleton"],"latest_commit_sha":null,"homepage":"http://ttskch.github.io/WordPress.Skeleton/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttskch.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":"2014-08-02T11:14:17.000Z","updated_at":"2023-07-28T17:38:22.000Z","dependencies_parsed_at":"2022-09-10T18:12:26.635Z","dependency_job_id":null,"html_url":"https://github.com/ttskch/WordPress.Skeleton","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2FWordPress.Skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2FWordPress.Skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2FWordPress.Skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2FWordPress.Skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttskch","download_url":"https://codeload.github.com/ttskch/WordPress.Skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811464,"owners_count":16884335,"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":["wordpress","wordpress-packagist","wordpress-skeleton"],"created_at":"2024-10-28T09:24:56.805Z","updated_at":"2025-10-06T03:21:08.932Z","avatar_url":"https://github.com/ttskch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress.Skeleton\n\n![image](https://cloud.githubusercontent.com/assets/4360663/15803328/f4f2f660-2b12-11e6-8d4e-59461e223640.png)\n\n[![Latest Stable Version](https://poser.pugx.org/wordpress/skeleton/v/stable.svg)](https://packagist.org/packages/wordpress/skeleton)\n[![Total Downloads](https://poser.pugx.org/wordpress/skeleton/downloads.svg)](https://packagist.org/packages/wordpress/skeleton)\n\nWordPress project skeleton to focus only your own source codes because of composer-friendly design. Inspired by [markjaquith/WordPress-Skeleton](https://github.com/markjaquith/WordPress-Skeleton).\n\nAdvantages compared to WordPress-Skeleton:\n\n* You can install via `composer create-project`.\n* You can add plugins via `composer require/install`.\n* You don't need to do `git submodule init/update`. (so installing is very fast)\n* You can set `/wp/` as DocumentRoot. (in other words, **you can hide \"/wp/\" from url**)\n* It works even on descendant directory of DocumentRoot. (you can get it to work casually ,without vhost settings, for local development)\n* All languages will be installed by default.\n\n## Requirements\n\n* PHP 5.3+\n\n## Installation\n\n```sh\n$ composer create-project wordpress/skeleton {project-name}\n$ cd {project-name}\n$ cp local-config-sample.php local-config.php\n$ vi local-config.php # tailor to your environment\n```\n\nYou can use Japanese or English environment as you like.\n\n### Note: For Windows\n\nOn Windows environment, maybe you need to use console (like cmd.exe) as an administrator user for creating symlink.\n\nIf you still have any symlink related problem, please create-project in following way :bow:\n\n```sh\n$ composer create-project wordpress/skeleton {project-name} --no-scripts\n$ cd {project-name}\n$ mklink /D wp\\wp-content\\my-themes ..\\..\\wp-content\\themes # or create symlink in some way\n$ mklink /D wp\\wp-content\\uploads ..\\..\\wp-content\\uploads # or create symlink in some way\n$ rm -rf wp/wp-content/plugins\n$ mklink /D wp\\wp-content\\plugins ..\\..\\wp-content\\plugins # or create symlink in some way\n$ cp local-config-sample.php local-config.php\n$ vi local-config.php # tailor to your environment\n```\n\n## Usage\n\nWordPress core will be installed in `/wp/` so root directory of your website will be `/wp/`. (e.g. \"http://example.com/project-name/wp/\")\n\nIf you want to hide `/wp/` from URL you should set DocumentRoot to `/path/to/project/wp/`.\n\nNow you can create your own theme in `/wp-content/themes/` and install some plugins into `/wp-content/plugins/` via composer (as described in the next chapter).\nAnd your git repository doesn't manage `/wp/` so **you can focus only your own source codes** in `/wp-content/themes`.\n\n## Installing plugins via composer\n\n### Using WordPress Packagist\n\nYou can use [WordPress Packagist](http://wpackagist.org) to install plugins (or themes) via composer like below:\n\n```json\n{\n    \"require\": {\n        \"wpackagist-plugin/akismet\": \"dev-trunk\",\n        \"wpackagist-plugin/captcha\": \"\u003e=3.9\",\n        \"wpackagist-theme/hueman\": \"*\"\n    }\n}\n```\n\n### Installing plugins form GitHub or zip file\n\nYou can also install some plugins (which isn't on WordPress.org) from GitHub repository, zip file, and so on.\nTo do that you should add package with `\"type\": \"wordpress-plugin\"` and require it like below:\n\n```json\n{\n    \"repositories\": [\n        {\n            \"type\": \"package\",\n            \"package\": {\n                \"name\": \"something-on-github\",\n                \"type\": \"wordpress-plugin\",\n                \"version\": \"dev-master\",\n                \"source\": {\n                    \"type\": \"git\",\n                    \"url\": \"git@github.com:someone/something.git\",\n                    \"reference\": \"master\"\n                }\n            }\n        },\n        {\n            \"type\": \"package\",\n            \"package\": {\n                \"name\": \"something-of-zip\",\n                \"type\": \"wordpress-plugin\",\n                \"version\": \"1.0\",\n                \"dist\": {\n                    \"type\": \"zip\",\n                    \"url\": \"http://something.com/download/1.0.zip\"\n                }\n            }\n        }\n    ],\n    \"require\": {\n        \"something-on-github\": \"dev-master\",\n        \"something-of-zip\": \"1.0\"\n    }\n}\n```\n\n## Backing up database and uploaded files\n\n`/backup/` directory is just for saving (and version-managing) database and uploaded files. If you need, you can save them here like below:\n\n```sh\n$ mysqldump -u[user] -p [database] \u003e backup/dump.sql\n```\n\n```sh\n$ zip -r backup/uploads.zip wp/wp-content/uploads\n```\n\n## Mechanism, FYI\n\nAfter install/update \"wordpress\" package, a symlink will be created in `/wp/` environment as shown below:\n\n* `/wp/wp-content/my-themes` -\u003e `/wp-content/themes`\n\nAnd on WordPress's booting process, `/wp/wp-content/my-theme` will be enabled as an additional theme directory by following process:\n\n1. `WPMU_PLUGIN_DIR` points `/wp-content/mu-plugins` because of customizing in `/wp-config.php`.\n2. In `/wp-content/mu-plugins/add-skeleton-theme-directory.php`, theme directory is added with `register_theme_directory()` function.\n\nJust to tell you, `/wp-config.php` (and `/local-config.php`) need not be symlinked into `/wp/` because they will loaded from `/wp/wp-load.php` during WordPress' normal booting process.\n\n## Commonly-used plugins\n\n* [TinyMCE Advanced](https://wordpress.org/plugins/tinymce-advanced/)\n* [Google XML Sitemaps](https://wordpress.org/plugins/google-sitemap-generator/)\n* [Acunetix Secure WordPress](https://wordpress.org/plugins/secure-wordpress/)\n* [Simple Local Avatars](https://wordpress.org/plugins/simple-local-avatars/)\n* [User Role Editor](https://wordpress.org/plugins/user-role-editor/)\n* ~~[jyokyoku/wp-ogp-customized](https://github.com/jyokyoku/wp-ogp-customized)~~\n    * Doesn't work on PHP 7. Use [ttskch/wp-ogp-customized](https://github.com/ttskch/wp-ogp-customized) instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fwordpress.skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttskch%2Fwordpress.skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fwordpress.skeleton/lists"}