PHPackages                             tourze/hotel-profile-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tourze/hotel-profile-bundle

ActiveSymfony-bundle

tourze/hotel-profile-bundle
===========================

酒店档案管理模块，提供酒店信息和房型管理功能

0.0.6(5mo ago)04503MITPHPCI passing

Since May 23Pushed 4mo agoCompare

[ Source](https://github.com/tourze/hotel-profile-bundle)[ Packagist](https://packagist.org/packages/tourze/hotel-profile-bundle)[ RSS](/packages/tourze-hotel-profile-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (41)Versions (7)Used By (3)

hotel-profile-bundle
====================

[](#hotel-profile-bundle)

[English](README.md) | [中文](README.zh-CN.md)

\[[![Latest Version](https://camo.githubusercontent.com/8ff36f8ff53ed0722b3c608e0df9819a8a34b45c3ca4f897c4cda1b700919f10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f686f74656c2d70726f66696c652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8ff36f8ff53ed0722b3c608e0df9819a8a34b45c3ca4f897c4cda1b700919f10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f686f74656c2d70726f66696c652d62756e646c652e7376673f7374796c653d666c61742d737175617265)\] () \[[![PHP Version](https://camo.githubusercontent.com/1b5ea63442a879f1cc78be282d206702a806c8a25ba852c922e3d980f226bf89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f686f74656c2d70726f66696c652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1b5ea63442a879f1cc78be282d206702a806c8a25ba852c922e3d980f226bf89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f686f74656c2d70726f66696c652d62756e646c652e7376673f7374796c653d666c61742d737175617265)\] () [![Symfony Version](https://camo.githubusercontent.com/c29ed935684a57aadac71f4c56f5903a4e6bd42fee4859433239102cfdd94733/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253545372e332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://symfony.com)[![License](https://camo.githubusercontent.com/6ae2a70b06210e319c8a71285125fc022bb3999a71afd6850f91df008924d871/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f686f74656c2d70726f66696c652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Hotel profile management bundle for Symfony applications. This bundle provides comprehensive hotel and room type management functionality with administrative interfaces, Excel import/export capabilities, and EasyAdmin integration.

> **Note**: This is an internal package for the monorepo architecture and is not published to Packagist.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Requirements](#requirements)
- [Configuration](#configuration)
- [Entities](#entities)
- [Services](#services)
- [Enums](#enums)
- [Admin Interface](#admin-interface)
- [API Endpoints](#api-endpoints)
- [Advanced Usage](#advanced-usage)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)

Features
--------

[](#features)

- **Hotel Management**: Complete CRUD operations for hotel profiles
- **Room Type Management**: Room type configurations for each hotel
- **Excel Import/Export**: Bulk import and export hotel data via Excel files
- **EasyAdmin Integration**: Ready-to-use administrative interface
- **Status Management**: Hotel operational status tracking
- **Validation**: Comprehensive data validation with Symfony constraints
- **Audit Trail**: Automatic timestamp tracking for all entities

Installation
------------

[](#installation)

### Step 1: Monorepo Usage

[](#step-1-monorepo-usage)

This bundle is designed for use within the monorepo architecture. It's automatically available when you set up the monorepo project.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

The bundle is automatically registered in the Symfony kernel. You can verify it's enabled by checking:

```
bin/console debug:container --tag=kernel.bundles
```

### Step 3: Update Database Schema

[](#step-3-update-database-schema)

```
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
```

### Step 4: Verify Installation

[](#step-4-verify-installation)

```
# Check if hotel-related routes are available
bin/console debug:router | grep hotel

# Check if services are registered
bin/console debug:container HotelService
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
