Download the PHP package mtarld/symbok-bundle without Composer

On this page you can find all versions of the php package mtarld/symbok-bundle. 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 symbok-bundle

:warning: Status: Archived

With PHP 8.1 and the emergence of public readonly properties, this bundle repository has been archived and is no longer maintained.

If you really need to generate getters and setters generation, you can have a look at lombok-php.

Symbok Annotation Bundle

Packagist GitHub Actions Status

Runtime code generator bundle for Symfony.

Initially inspired by Plumbok.

Compatible with Symfony 4 and 5

Symbok ?

:wave: Bye bye endless PHP classes !

Symbok provides annotations in order to generate on the fly predictable and repetitive methods.

Available annotations are:

Symbok also parses doctrine properties annotations such as Column, JoinColumn, OneToOne, OneToMany, ManyToOne, ManyToMany in order to automatically discover property type, nullable status and adapt generated methods.

You'll be able to find more precise information on Symbok Bundle in the documentation

Getting started

Installation

You can easily install Symbok by composer

Then, bundle should be registered. Just verify that config\bundles.php is containing :

Configuration

Once Symbok is installed, you should configure it to fit your needs.

To do so, edit config/packages/symbok.yaml

And you're ready to go ! :rocket:

Basic example

Register your namespace in config file

Then edit your class by adding annotations

Then, the class will be executed as the following:

Provided commands

Updating original files with symbok:update:classes

When running this command, original classes' docblock will be updated with good @method tags so that IDEs will be able to know that new methods exist.

For instance, the class:

Will be rewritten as:

Previewing results with symbok:preview

By using that command, you will be able preview Symbok compilation results directly in your CLI.

Compilation strategy represents which compilation will be applied on target class. It could be either:

Documentation

A detailed documentation is available here

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

After writing your fix/feature, you can run following commands to make sure that everyting is still ok.

Authors


All versions of symbok-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ~7.2.5|^7.3|^7.4
nikic/php-parser Version ^4.2
phpdocumentor/reflection-docblock Version ^4.3|^5.0
doctrine/annotations Version ^1.8
doctrine/collections Version ^1.5
doctrine/dbal Version ^2.9
doctrine/orm Version ^2.7
symfony/inflector Version ^5.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 mtarld/symbok-bundle contains the following files

Loading the files please wait ....