Download the PHP package islamwalied/one-click-project without Composer

On this page you can find all versions of the php package islamwalied/one-click-project. 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 one-click-project

One Click Project

One Click Project is a powerful Laravel package designed to streamline your development process by generating a complete project structure with a single Artisan command. It creates a model, migration, repository (with a base repository pattern), service layer, resource, controller, request classes, and API routes—all tailored to your specifications.

Features

Installation

You can install the package via Composer:

The package will automatically register its service provider and command thanks to Laravel's auto-discovery feature.

Requirements

Updating Composer Configuration

Add the GD extension requirement to your composer.json:

Usage

Run the Artisan command to generate your project structure:

Replace {ModelName} with the name of your model (e.g., User, Post).

Example

Interactive Prompts

  1. Model Attributes: You'll be asked to specify column names and types (e.g., string, integer, foreignId) for the model's migration and fillable properties.

    • Example:
  2. Custom Methods: Optionally add custom methods to the repository and service layers.

    • Example:
  3. Route Authentication: Specify which API endpoints require authentication:
    • Example:

Generated Structure

After running the command, you'll get:

Verified Publishing Section:

Post-Generation Steps

  1. Register Service Providers: If not already registered, add RepositoryServiceProvider and ServiceServiceProvider to bootstrap/app.php (Laravel 10+):

  2. Run Migrations: Apply the generated migration:

  3. Test the API: Use tools like Postman to test the generated endpoints (e.g., GET /api/v1/posts).

Configuration

No additional configuration is required out of the box. However, you can customize the generated files by modifying the package's generator classes if needed.

Customizing Image Storage

The ImageTrait uses Laravel's public disk by default. To change this, update your filesystems.php config or extend the trait in your application.

Customizing Logging

After publishing the logging files, you need to update your config/logging.php file to include the custom daily logger. To use it add this object to the end of the file:

API Endpoints

Generated routes follow this pattern:

All routes are prefixed with v1/ and include cors, lang, and throttle middleware by default. You can selectively apply the auth:sanctum middleware to specific endpoints during the generation process.

Advanced Features

Model Attribute Modifiers

When creating columns, you can apply the following modifiers:

Enum Support

For enum columns, you can specify allowed values as a comma-separated list. The migration will be generated with these values properly configured.

Foreign Key Relationships

When adding a foreignId column, the system will:

Service-Repository Architecture

The generated code follows a clean service-repository pattern:

Notes

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m "Add your feature").
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a Pull Request.

Issues

If you encounter any issues or have suggestions, please open an issue on GitHub.

License

This package is open-sourced under the MIT License.

Credits

Developed by Islam Walied. Special thanks to the Laravel community for inspiration and support.


All versions of one-click-project with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^11.0|^12.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 islamwalied/one-click-project contains the following files

Loading the files please wait ...