Download the PHP package jamesmosq/moonshine-colombia-puc-ciiu without Composer

On this page you can find all versions of the php package jamesmosq/moonshine-colombia-puc-ciiu. 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 moonshine-colombia-puc-ciiu

moonshine-colombia/puc-ciiu

Packagist Version GitHub PHP Laravel MoonShine

PUC (Plan Único de Cuentas) y CIIU (Clasificación Industrial Uniforme) colombianos para MoonShine 4.x.

Campos de búsqueda con autocompletado AJAX, árboles navegables jerárquicos y filtros para Resources de MoonShine. Datos oficiales del Decreto 2649/93 (PUC) y el DANE (CIIU).


Contenido


Requisitos

Dependencia Versión mínima
PHP 8.3+
Laravel 11, 12 ó 13
MoonShine 4.x

Instalación

Ejecutar migraciones y seeders:

Los seeders son idempotentes: se pueden ejecutar varias veces sin duplicar datos.


Campos de búsqueda

CuentaPucField

Campo AJAX para seleccionar una cuenta del PUC. Muestra [código] nombre en el campo y guarda el código como string.

Muestra: [1105] Caja
Guarda: "1105" (string)
Evento Alpine al seleccionar: puc-selected{ value, label, node }


ActividadCiiuField

Campo AJAX para seleccionar una actividad económica CIIU. Por defecto solo permite seleccionar clases (4 dígitos).

Muestra: [0111] Cultivo de cereales
Evento Alpine: ciiu-selected{ value, label, node }


Componentes árbol

Los árboles cargan cada nivel de forma lazy al expandir, lo que los hace eficientes incluso con el PUC completo.

PucTreeComponent

Características:


CiiuTreeComponent

Jerarquía CIIU:


Filtros para Resources

Usar en el método filters() de cualquier Resource de MoonShine.

Filtro Columna por defecto Opciones
ClasePucFilter clase 1–9 con nombre de cada clase
NaturalezaFilter naturaleza debito / credito
SeccionCiiuFilter seccion A–U (21 secciones CIIU)

Todos los filtros son nullable (incluyen opción "Todos") y aceptan columna personalizada:


Modelos Eloquent

CuentaPuc

Jerarquía PUC:

Nivel Nombre Dígitos Ejemplo
1 Clase 1 1 — Activos
2 Grupo 2 11 — Disponible
3 Cuenta 4 1105 — Caja
4 Subcuenta 6 110505 — Caja General
5 Auxiliar 8+ 11050501

Naturaleza: clases 1, 5, 6, 7 → débito · clases 2, 3, 4, 8, 9 → crédito


ActividadCiiu


PUC Comercial vs ESAL

PUC Comercial (Decreto 2649 de 1993)

Plan estándar para empresas con ánimo de lucro. Cargado por defecto con PucComercialSeeder. Cubre 9 clases, 52 grupos, 356 cuentas y 2.179 subcuentas.

PUC ESAL (Decreto 4400 de 2004)

Plan para Entidades Sin Ánimo de Lucro: fundaciones, asociaciones, corporaciones y cooperativas. Adapta el PUC comercial para:

Para activar el PUC ESAL:

  1. Crea el archivo puc_esal.json con el mismo formato que puc_colombia.json
  2. Cópialo a packages/moonshine-colombia-puc/database/seeders/data/puc_esal.json
  3. Ejecuta el seeder:

  4. Usa el campo con el tipo ESAL:

Información de los datos

PUC Colombia

Campo Detalle
Base legal Decreto 2649 de 1993 y sus modificaciones
Registros incluidos 2.596 (niveles 1 a 4)
Actualización Manual — conforme al decreto vigente
Licencia de los datos Dominio público (norma oficial colombiana)

CIIU Colombia

Campo Detalle
Fuente DANE — Clasificación Industrial Uniforme Rev. 4
Registros generados ~865 (22 secciones + 89 divisiones + 250 grupos + 504 clases)
Licencia de los datos Dominio público (estadística oficial del DANE)

Pruebas

La suite incluye 91 tests / 150 assertions sobre SQLite en memoria:

Grupo Tests Qué cubre
PUC Feature 23 Seeder, modelo, scopes, relaciones, endpoints
CIIU Feature 19 Seeder, modelo, scopes, relaciones, endpoints
Componentes árbol 11 Instanciación, make(), propiedades
Filtros y Campos 22 Instanciación MoonShine, columnas, nullable
Opciones estáticas (Unit) 15 Arrays de filtros sin depender de MoonShine
Base Laravel 2 Ejemplo incluido por defecto

Licencia

MIT — ver LICENSE.

Los datos del PUC y el CIIU son de dominio público por ser normas y estadísticas oficiales de la República de Colombia.



All versions of moonshine-colombia-puc-ciiu with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^11.0|^12.0|^13.0
moonshine/moonshine Version ^4.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 jamesmosq/moonshine-colombia-puc-ciiu contains the following files

Loading the files please wait ...