Download the PHP package technway/graphql-starter without Composer

On this page you can find all versions of the php package technway/graphql-starter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package graphql-starter

GraphQL Starter Logo

GraphQL Starter

The GraphQL Starter Theme is a specialized headless WordPress theme designed to function purely as a GraphQL API endpoint. It eliminates traditional frontend rendering and focuses solely on providing a clean and efficient GraphQL API interface.

WordPress PHP License

This lightweight and secure solution is ideal for:

The theme has no authentication system, anonymous access is allowed to specific GraphQL queries and mutations. The following mutations are available:

Features

Core Capabilities

Custom Post Types and Fields

Check the docs/custom-fields.md files for more information on registering custom post types and custom fields.

GraphQL Capabilities


Installation

Using Composer (Recommended)

Manual Installation

  1. Download/Clone the theme from the Technway repository.

  2. Upload the theme folder to your WordPress installation directory under /wp-content/themes/.
  3. Activate the theme via the WordPress admin panel under Appearance > Themes.
  4. Install and activate the WPGraphQL plugin.

Rename Theme

Use the rename-theme.php script to rename the theme. The script updates all references across relevant files while preserving formatting.

Run the script from the root of the theme directory:

Example:


Theme Configuration

The theme.config.php file contains essential configuration constants that control various features of the theme. These constants determine which functionalities are enabled or disabled.

Configuration Constants

Constant Type Default Description
GRAPHQL_STARTER_ENABLE_CUSTOM_POST_TYPES boolean false Controls whether custom post types are enabled. When true, allows registration of custom post types. See docs/custom-post-types.md for details.
GRAPHQL_STARTER_ENABLE_CUSTOM_FIELDS boolean false Controls whether custom fields are enabled. When true, allows registration of custom fields. See docs/custom-fields.md for details.
GRAPHQL_STARTER_LIKE_POSTS_ENABLED boolean false Enables/disables the post likes system. When true, activates like/unlike queries and mutations. See docs/blog-posts.md for details.
GRAPHQL_STARTER_POST_PAGES_COUNT_ENABLED boolean true Controls whether total pages count is available in GraphQL queries. When true, adds 'total' field to pageInfo in post queries. Useful for pagination UI. See docs/blog-posts.md for details.
GRAPHQL_STARTER_SOCIAL_SHARE_ENABLED boolean false Controls whether social sharing URLs are available in post queries. See docs/blog-posts.md for details
GRAPHQL_STARTER_REDIRECT_FRONTEND_ENABLED boolean true Controls whether the frontend is redirected to the admin dashboard. When true, the frontend is redirected to the admin dashboard.

Example Usage

When GRAPHQL_STARTER_POST_PAGES_COUNT_ENABLED is true, you can query post pagination counts.

For detailed information about each feature. See the docs/ directory.

Directory Structure

includes/ Directory

The includes/ directory contains the core classes used to register custom post types (CPTs) and custom fields (CFs). These classes simplify the process of creating and managing CPTs and CFs within the theme. It also contains the custom-fields.php and post-types.php files, which are used to register custom fields and post types respectively.

core/ Directory

The core/ directory contains the reusable classes used to register custom post types (CPTs) and custom fields (CFs). These classes simplify the process of creating and managing CPTs and CFs within the theme.

docs/ Directory

The docs/ directory contains additional detailed documentation files about the theme, its architecture, and usage examples. Refer to docs/usage.md for more information on registering custom post types and custom fields.

testing-graphql/ Directory

The testing-graphql/ directory contains a .http file for testing GraphQL queries. Refer to testing-graphql.md for more information on testing GraphQL queries.


Usage


License

This theme is licensed under the GNU General Public License v2 or later (GPL-2.0). See the LICENSE file for details.


Support

For support and contributions, visit the Technway GitHub repository.


Credits

The GraphQL Starter Theme is built with ❤️ and maintained by Technway. Special thanks to the creators of WPGraphQL for their excellent plugin.

Contributions are welcome! Feel free to fork the repository and submit pull requests.


All versions of graphql-starter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
composer/installers Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package technway/graphql-starter contains the following files

Loading the files please wait ....